#3E217D#3E217D
#3E217D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.145 H 291.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #3E217D |
|---|---|
| RGB | rgb(62, 33, 125) |
| HSL | hsl(259, 58%, 31%) |
| HSV | hsv(259, 74%, 49%) |
| CMYK | cmyk(50.4%, 73.6%, 0%, 51%) |
| CIE-LAB | lab(22.27, 36.63, -47.25) |
| CIE-LCH | lch(22.27, 59.78, 307.79°) |
| OKLab | oklab(34.61% 0.0529 -0.1355) |
| OKLCH | oklch(34.61% 0.145 291.3) |
| XYZ | xyz(6.2311, 3.5923, 19.7631) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.36
Midnight Blue
#191970
ΔE00 5.63
Royal Purple (survey)
#4B006E
ΔE00 6.52
Royal
#0C1793
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E217D #607D21
analogous
#21327D #3E217D #6C217D
triadic
#3E217D #7D3E21 #217D3E
tetradic
#3E217D #7D2132 #607D21 #217D6C
square
#3E217D #7D2132 #607D21 #217D6C
split-complementary
#3E217D #7D6C21 #327D21
monochromatic
#0E071C #26144D #3E217D #562EAD #7349CF
Accessibility & contrast
On white
12.22
#3E217D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3E217D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E217D
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E217D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E217D | 1.00 | 12.22 | 1.72 | 12.22 |
| #FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#29394C
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3e217d; /* rgb */ color: rgb(62, 33, 125); /* oklch */ color: oklch(34.6% 0.145 291.3);
Tailwind
colors: {
custom: {
50: '#7a5fa3',
500: '#3e217d',
950: '#000000',
},
}SCSS
$custom: #3e217d; $custom-light: #7a5fa3; $custom-dark: #000000;
JSON
{
"hex": "#3e217d",
"rgb": {
"r": 62,
"g": 33,
"b": 125
},
"hsl": {
"h": 258.913,
"s": 58.228,
"l": 30.98
},
"oklch": {
"l": 0.34614,
"c": 0.14548,
"h": 291.3
},
"luminance": 0.03593
}Semantic roles & 50–950 ramp
primary
#3E217D
secondary
#90B04A
accent
#E146B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F