#6640CC#6640CC
#6640CC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.204 H 289.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).
Color values
| HEX | #6640CC |
|---|---|
| RGB | rgb(102, 64, 204) |
| HSL | hsl(256, 58%, 53%) |
| HSV | hsv(256, 69%, 80%) |
| CMYK | cmyk(50%, 68.6%, 0%, 20%) |
| CIE-LAB | lab(39.33, 49.76, -66.97) |
| CIE-LCH | lch(39.33, 83.43, 306.61°) |
| OKLab | oklab(49.87% 0.0674 -0.1922) |
| OKLCH | oklch(49.87% 0.204 289.3) |
| XYZ | xyz(18.2088, 10.8504, 58.2499) |
| Luminance | 0.1085 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.94
Blurple
#5539CC
ΔE00 2.99
Blue With A Hint Of Purple
#533CC6
ΔE00 3.16
Burple
#6832E3
ΔE00 3.59
Bluish Purple
#703BE7
ΔE00 3.78
Purpley Blue
#5F34E7
ΔE00 3.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6640CC #A6CC40
analogous
#4060CC #6640CC #AC40CC
triadic
#6640CC #CC6640 #40CC66
tetradic
#6640CC #CC4060 #A6CC40 #40CCAC
square
#6640CC #CC4060 #A6CC40 #40CCAC
split-complementary
#6640CC #CCAC40 #60CC40
monochromatic
#361F73 #4C2CA3 #6640CC #8D70D9 #B3A1E6
Accessibility & contrast
On white
6.62
#6640CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#6640CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6640CC
6.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6640CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6640CC | 1.00 | 6.62 | 3.17 | 6.62 |
| #FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#426481
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #6640cc; /* rgb */ color: rgb(102, 64, 204); /* oklch */ color: oklch(49.9% 0.204 289.3);
Tailwind
colors: {
custom: {
50: '#9b78dd',
500: '#6640cc',
950: '#000000',
},
}SCSS
$custom: #6640cc; $custom-light: #9b78dd; $custom-dark: #000000;
JSON
{
"hex": "#6640cc",
"rgb": {
"r": 102,
"g": 64,
"b": 204
},
"hsl": {
"h": 256.286,
"s": 57.851,
"l": 52.549
},
"oklch": {
"l": 0.49869,
"c": 0.20364,
"h": 289.3
},
"luminance": 0.10851
}Semantic roles & 50–950 ramp
primary
#6640CC
secondary
#C2D295
accent
#E147B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83