#4E237F#4E237F
#4E237F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.147 H 300.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4E237F |
|---|---|
| RGB | rgb(78, 35, 127) |
| HSL | hsl(268, 57%, 32%) |
| HSV | hsv(268, 72%, 50%) |
| CMYK | cmyk(38.6%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.81, 39.25, -44.30) |
| CIE-LCH | lch(24.81, 59.19, 311.54°) |
| OKLab | oklab(36.92% 0.075 -0.1263) |
| OKLCH | oklch(36.92% 0.147 300.7) |
| XYZ | xyz(7.5727, 4.3540, 20.5160) |
| Luminance | 0.0435 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.02
Royal Purple (survey)
#4B006E
ΔE00 5.76
Rebeccapurple
#663399
ΔE00 6.30
Indigo (survey)
#380282
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 7.72
Midnight Blue
#191970
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E237F #547F23
analogous
#23267F #4E237F #7C237F
triadic
#4E237F #7F4E23 #237F4E
tetradic
#4E237F #7F2326 #547F23 #237F7C
square
#4E237F #7F2326 #547F23 #237F7C
split-complementary
#4E237F #7F7C23 #267F23
monochromatic
#13091F #31164F #4E237F #6B30AF #8A4ECE
Accessibility & contrast
On white
11.23
#4E237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#4E237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E237F
11.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E237F | 1.00 | 11.23 | 1.87 | 11.23 |
| #FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#43394E
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #4e237f; /* rgb */ color: rgb(78, 35, 127); /* oklch */ color: oklch(36.9% 0.147 300.7);
Tailwind
colors: {
custom: {
50: '#8462a5',
500: '#4e237f',
950: '#000000',
},
}SCSS
$custom: #4e237f; $custom-light: #8462a5; $custom-dark: #000000;
JSON
{
"hex": "#4e237f",
"rgb": {
"r": 78,
"g": 35,
"b": 127
},
"hsl": {
"h": 268.043,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.36918,
"c": 0.14688,
"h": 300.7
},
"luminance": 0.04354
}Semantic roles & 50–950 ramp
primary
#4E237F
secondary
#82B14C
accent
#E04899
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F