#4E307F#4E307F
#4E307F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.128 H 297.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4E307F |
|---|---|
| RGB | rgb(78, 48, 127) |
| HSL | hsl(263, 45%, 34%) |
| HSV | hsv(263, 62%, 50%) |
| CMYK | cmyk(38.6%, 62.2%, 0%, 50.2%) |
| CIE-LAB | lab(27.48, 31.97, -39.98) |
| CIE-LCH | lch(27.48, 51.19, 308.65°) |
| OKLab | oklab(38.84% 0.0594 -0.1136) |
| OKLCH | oklch(38.84% 0.128 297.6) |
| XYZ | xyz(8.0286, 5.2658, 20.6680) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.88
Rebeccapurple
#663399
ΔE00 5.73
Blueberry
#464196
ΔE00 6.95
Indigo
#4B0082
ΔE00 8.30
Royal Purple (survey)
#4B006E
ΔE00 8.80
Indigo (survey)
#380282
ΔE00 9.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4E307F #617F30
analogous
#303A7F #4E307F #76307F
triadic
#4E307F #7F4E30 #307F4E
tetradic
#4E307F #7F303A #617F30 #307F76
square
#4E307F #7F303A #617F30 #307F76
split-complementary
#4E307F #7F7630 #3A7F30
monochromatic
#170E26 #331F53 #4E307F #6941AB #8965C5
Accessibility & contrast
On white
10.23
#4E307F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#4E307F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4E307F
10.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4E307F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4E307F | 1.00 | 10.23 | 2.05 | 10.23 |
| #FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#434152
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4e307f; /* rgb */ color: rgb(78, 48, 127); /* oklch */ color: oklch(38.8% 0.128 297.6);
Tailwind
colors: {
custom: {
50: '#836aa5',
500: '#4e307f',
950: '#000000',
},
}SCSS
$custom: #4e307f; $custom-light: #836aa5; $custom-dark: #000000;
JSON
{
"hex": "#4e307f",
"rgb": {
"r": 78,
"g": 48,
"b": 127
},
"hsl": {
"h": 262.785,
"s": 45.143,
"l": 34.314
},
"oklch": {
"l": 0.38844,
"c": 0.12822,
"h": 297.6
},
"luminance": 0.05266
}Semantic roles & 50–950 ramp
primary
#4E307F
secondary
#8FAC5F
accent
#D553A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F