#3E217E#3E217E
#3E217E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.147 H 291.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3E217E |
|---|---|
| RGB | rgb(62, 33, 126) |
| HSL | hsl(259, 58%, 31%) |
| HSV | hsv(259, 74%, 49%) |
| CMYK | cmyk(50.8%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(22.37, 36.93, -47.73) |
| CIE-LCH | lch(22.37, 60.35, 307.73°) |
| OKLab | oklab(34.71% 0.0527 -0.1369) |
| OKLCH | oklch(34.71% 0.147 291) |
| XYZ | xyz(6.2953, 3.6180, 20.1013) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.07
Indigo
#4B0082
ΔE00 5.33
Midnight Blue
#191970
ΔE00 5.65
Royal
#0C1793
ΔE00 6.48
Royal Purple (survey)
#4B006E
ΔE00 6.59
Darkslateblue
#483D8B
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E217E #617E21
analogous
#21327E #3E217E #6C217E
triadic
#3E217E #7E3E21 #217E3E
tetradic
#3E217E #7E2132 #617E21 #217E6C
square
#3E217E #7E2132 #617E21 #217E6C
split-complementary
#3E217E #7E6C21 #327E21
monochromatic
#0E081D #26144E #3E217E #562EAE #744AD0
Accessibility & contrast
On white
12.18
#3E217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3E217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E217E
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E217E | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#29394D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3e217e; /* rgb */ color: rgb(62, 33, 126); /* oklch */ color: oklch(34.7% 0.147 291.0);
Tailwind
colors: {
custom: {
50: '#7a5fa4',
500: '#3e217e',
950: '#000000',
},
}SCSS
$custom: #3e217e; $custom-light: #7a5fa4; $custom-dark: #000000;
JSON
{
"hex": "#3e217e",
"rgb": {
"r": 62,
"g": 33,
"b": 126
},
"hsl": {
"h": 258.71,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.34707,
"c": 0.14673,
"h": 291
},
"luminance": 0.03618
}Semantic roles & 50–950 ramp
primary
#3E217E
secondary
#91B14A
accent
#E246B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F