% Define the HEX colors and their corresponding RGB values
hex_colors = {'#8D2F25', '#4E1945', '#CB9475', '#8CBF87', '#3E608D', '#909291'};
rgb_values = [141, 47, 37; 78, 25, 69; 203, 148, 117; 140, 191, 135; 62, 96, 141; 144, 146, 145];
% Convert RGB to MATLAB's color format (0-1 scale)
rgb_norm = rgb_values / 255;
% Display the colors
figure;
for i = 1:length(hex_colors)
subplot(2, 3, i);
rectangle('Position', [0, 0, 1, 1], 'FaceColor', rgb_norm(i, :), 'EdgeColor', 'none');
title(sprintf('HEX: %s \n RGB: %d %d %d', hex_colors{i}, rgb_values(i, 1), rgb_values(i, 2), rgb_values(i, 3)));
axis off;
end
% Define the HEX colors and their corresponding RGB values
hex_colors = {'#B8DBB3', '#72B063', '#719AAC', '#E29135', '#94ACCD', '#445F7E'};
rgb_values = [184, 219, 179; 114, 176, 99; 113, 154, 172; 226, 145, 53; 148, 172, 205; 68, 95, 126];
% Convert RGB to MATLAB's color format (0-1 scale)
rgb_norm = rgb_values / 255;
% Display the colors
figure;
for i = 1:length(hex_colors)
subplot(2, 3, i);
rectangle('Position', [0, 0, 1, 1], 'FaceColor', rgb_norm(i, :), 'EdgeColor', 'none');
title(sprintf('HEX: %s \n RGB: %d %d %d', hex_colors{i}, rgb_values(i, 1), rgb_values(i, 2), rgb_values(i, 3)));
axis off;
end