#6640E7#6640E7
#6640E7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.235 H 285.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #6640E7 |
|---|---|
| RGB | rgb(102, 64, 231) |
| HSL | hsl(254, 78%, 58%) |
| HSV | hsv(254, 72%, 91%) |
| CMYK | cmyk(55.8%, 72.3%, 0%, 9.4%) |
| CIE-LAB | lab(41.63, 57.36, -78.68) |
| CIE-LCH | lch(41.63, 97.37, 306.09°) |
| OKLab | oklab(52.21% 0.0621 -0.2265) |
| OKLCH | oklch(52.21% 0.235 285.3) |
| XYZ | xyz(21.7323, 12.2598, 76.8070) |
| Luminance | 0.1226 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.10
Bluish Purple
#703BE7
ΔE00 1.63
Purpley Blue
#5F34E7
ΔE00 2.61
Burple
#6832E3
ΔE00 2.83
Bluey Purple
#6241C7
ΔE00 4.24
Blurple
#5539CC
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6640E7 #C1E740
analogous
#406DE7 #6640E7 #BA40E7
triadic
#6640E7 #E76640 #40E766
tetradic
#6640E7 #E7406D #C1E740 #40E7BA
square
#6640E7 #E7406D #C1E740 #40E7BA
split-complementary
#6640E7 #E7BA40 #6DE740
monochromatic
#321399 #431AD0 #6640E7 #9276EE #BDADF5
Accessibility & contrast
On white
6.08
#6640E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#6640E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6640E7
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6640E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6640E7 | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#276E90
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #6640e7; /* rgb */ color: rgb(102, 64, 231); /* oklch */ color: oklch(52.2% 0.235 285.3);
Tailwind
colors: {
custom: {
50: '#9e79f0',
500: '#6640e7',
950: '#000000',
},
}SCSS
$custom: #6640e7; $custom-light: #9e79f0; $custom-dark: #000000;
JSON
{
"hex": "#6640e7",
"rgb": {
"r": 102,
"g": 64,
"b": 231
},
"hsl": {
"h": 253.653,
"s": 77.674,
"l": 57.843
},
"oklch": {
"l": 0.52209,
"c": 0.23486,
"h": 285.3
},
"luminance": 0.12261
}Semantic roles & 50–950 ramp
primary
#6640E7
secondary
#D4E3A0
accent
#F434C8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85