#6E40D3#6E40D3
#6E40D3 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.212 H 291.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #6E40D3 |
|---|---|
| RGB | rgb(110, 64, 211) |
| HSL | hsl(259, 63%, 54%) |
| HSV | hsv(259, 70%, 83%) |
| CMYK | cmyk(47.9%, 69.7%, 0%, 17.3%) |
| CIE-LAB | lab(40.71, 53.05, -68.72) |
| CIE-LCH | lch(40.71, 86.81, 307.67°) |
| OKLab | oklab(51.22% 0.0774 -0.197) |
| OKLCH | oklch(51.22% 0.212 291.4) |
| XYZ | xyz(20.0184, 11.6842, 62.8159) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.49
Bluish Purple
#703BE7
ΔE00 2.58
Burple
#6832E3
ΔE00 3.17
Purpley Blue
#5F34E7
ΔE00 3.74
Purpleish Blue
#6140EF
ΔE00 3.91
Blurple
#5539CC
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6E40D3 #A5D340
analogous
#405CD3 #6E40D3 #B840D3
triadic
#6E40D3 #D36E40 #40D36E
tetradic
#6E40D3 #D3405C #A5D340 #40D3B8
square
#6E40D3 #D3405C #A5D340 #40D3B8
split-complementary
#6E40D3 #D3B840 #5CD340
monochromatic
#3A1D7C #5228AE #6E40D3 #9472DE #BAA3EA
Accessibility & contrast
On white
6.29
#6E40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#6E40D3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6E40D3
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6E40D3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6E40D3 | 1.00 | 6.29 | 3.34 | 6.29 |
| #FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#4E6685
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6e40d3; /* rgb */ color: rgb(110, 64, 211); /* oklch */ color: oklch(51.2% 0.212 291.4);
Tailwind
colors: {
custom: {
50: '#a078e2',
500: '#6e40d3',
950: '#000000',
},
}SCSS
$custom: #6e40d3; $custom-light: #a078e2; $custom-dark: #000000;
JSON
{
"hex": "#6e40d3",
"rgb": {
"r": 110,
"g": 64,
"b": 211
},
"hsl": {
"h": 258.776,
"s": 62.553,
"l": 53.922
},
"oklch": {
"l": 0.51223,
"c": 0.2117,
"h": 291.4
},
"luminance": 0.11685
}Semantic roles & 50–950 ramp
primary
#6E40D3
secondary
#C3D798
accent
#E642B2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100915
muted
#7F7B84