#6640C8#6640C8
#6640C8 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.199 H 290.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).
Color values
| HEX | #6640C8 |
|---|---|
| RGB | rgb(102, 64, 200) |
| HSL | hsl(257, 55%, 52%) |
| HSV | hsv(257, 68%, 78%) |
| CMYK | cmyk(49%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(39.00, 48.63, -65.17) |
| CIE-LCH | lch(39.00, 81.32, 306.73°) |
| OKLab | oklab(49.54% 0.0681 -0.1869) |
| OKLCH | oklch(49.54% 0.199 290) |
| XYZ | xyz(17.7352, 10.6610, 55.7557) |
| Luminance | 0.1066 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.71
Blurple
#5539CC
ΔE00 3.02
Blue With A Hint Of Purple
#533CC6
ΔE00 3.07
Burple
#6832E3
ΔE00 4.00
Bluish Purple
#703BE7
ΔE00 4.28
Purpley Blue
#5F34E7
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6640C8 #A2C840
analogous
#405EC8 #6640C8 #AA40C8
triadic
#6640C8 #C86640 #40C866
tetradic
#6640C8 #C8405E #A2C840 #40C8AA
square
#6640C8 #C8405E #A2C840 #40C8AA
split-complementary
#6640C8 #C8AA40 #5EC840
monochromatic
#36206E #4D2D9D #6640C8 #8C70D6 #B29FE3
Accessibility & contrast
On white
6.70
#6640C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#6640C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6640C8
6.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6640C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6640C8 | 1.00 | 6.70 | 3.13 | 6.70 |
| #FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#45627F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #6640c8; /* rgb */ color: rgb(102, 64, 200); /* oklch */ color: oklch(49.5% 0.199 290.0);
Tailwind
colors: {
custom: {
50: '#9a78da',
500: '#6640c8',
950: '#000000',
},
}SCSS
$custom: #6640c8; $custom-light: #9a78da; $custom-dark: #000000;
JSON
{
"hex": "#6640c8",
"rgb": {
"r": 102,
"g": 64,
"b": 200
},
"hsl": {
"h": 256.765,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.49536,
"c": 0.19889,
"h": 290
},
"luminance": 0.10662
}Semantic roles & 50–950 ramp
primary
#6640C8
secondary
#BFD094
accent
#DF49B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83