#4F3786#4F3786
#4F3786 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.127 H 294.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #4F3786 |
|---|---|
| RGB | rgb(79, 55, 134) |
| HSL | hsl(258, 42%, 37%) |
| HSV | hsv(258, 59%, 53%) |
| CMYK | cmyk(41%, 59%, 0%, 47.5%) |
| CIE-LAB | lab(29.70, 29.99, -40.76) |
| CIE-LCH | lch(29.70, 50.61, 306.34°) |
| OKLab | oklab(40.66% 0.0517 -0.1159) |
| OKLCH | oklch(40.66% 0.127 294) |
| XYZ | xyz(8.8926, 6.1157, 23.2616) |
| Luminance | 0.0612 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 2.92
Blueberry
#464196
ΔE00 4.96
Rebeccapurple
#663399
ΔE00 5.42
Ocean Blue
#4F42B5
ΔE00 8.16
Twilight
#4E518B
ΔE00 8.96
Sapphire (survey)
#2138AB
ΔE00 9.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F3786 #6E8637
analogous
#374786 #4F3786 #773786
triadic
#4F3786 #864F37 #37864F
tetradic
#4F3786 #863747 #6E8637 #378677
square
#4F3786 #863747 #6E8637 #378677
split-complementary
#4F3786 #867737 #478637
monochromatic
#1C132F #35255B #4F3786 #6949B1 #8B72C5
Accessibility & contrast
On white
9.45
#4F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#4F3786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F3786
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F3786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F3786 | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B4789
Deuteranopia (green-blind)
#154584
Tritanopia (blue-blind)
#414859
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #4f3786; /* rgb */ color: rgb(79, 55, 134); /* oklch */ color: oklch(40.7% 0.127 294.0);
Tailwind
colors: {
custom: {
50: '#846faa',
500: '#4f3786',
950: '#000000',
},
}SCSS
$custom: #4f3786; $custom-light: #846faa; $custom-dark: #000000;
JSON
{
"hex": "#4f3786",
"rgb": {
"r": 79,
"g": 55,
"b": 134
},
"hsl": {
"h": 258.228,
"s": 41.799,
"l": 37.059
},
"oklch": {
"l": 0.40657,
"c": 0.12689,
"h": 294
},
"luminance": 0.06116
}Semantic roles & 50–950 ramp
primary
#4F3786
secondary
#9AAE6B
accent
#D256AC
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F