#4F338C#4F338C
#4F338C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.141 H 293.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #4F338C |
|---|---|
| RGB | rgb(79, 51, 140) |
| HSL | hsl(259, 47%, 37%) |
| HSV | hsv(259, 64%, 55%) |
| CMYK | cmyk(43.6%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(29.22, 34.17, -45.27) |
| CIE-LCH | lch(29.22, 56.72, 307.05°) |
| OKLab | oklab(40.44% 0.0564 -0.1291) |
| OKLCH | oklch(40.44% 0.141 293.6) |
| XYZ | xyz(9.1406, 5.9231, 25.4675) |
| Luminance | 0.0592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.74
Rebeccapurple
#663399
ΔE00 4.63
Blueberry
#464196
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 7.54
Indigo Blue
#3A18B1
ΔE00 8.44
Sapphire (survey)
#2138AB
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F338C #708C33
analogous
#33448C #4F338C #7B338C
triadic
#4F338C #8C4F33 #338C4F
tetradic
#4F338C #8C3344 #708C33 #338C7B
square
#4F338C #8C3344 #708C33 #338C7B
split-complementary
#4F338C #8C7B33 #448C33
monochromatic
#1C1232 #36235F #4F338C #6843B9 #8C6FCB
Accessibility & contrast
On white
9.61
#4F338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#4F338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F338C
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F338C | 1.00 | 9.61 | 2.18 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#3E475A
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4f338c; /* rgb */ color: rgb(79, 51, 140); /* oklch */ color: oklch(40.4% 0.141 293.6);
Tailwind
colors: {
custom: {
50: '#856cae',
500: '#4f338c',
950: '#000000',
},
}SCSS
$custom: #4f338c; $custom-light: #856cae; $custom-dark: #000000;
JSON
{
"hex": "#4f338c",
"rgb": {
"r": 79,
"g": 51,
"b": 140
},
"hsl": {
"h": 258.876,
"s": 46.597,
"l": 37.451
},
"oklch": {
"l": 0.40441,
"c": 0.14093,
"h": 293.6
},
"luminance": 0.05923
}Semantic roles & 50–950 ramp
primary
#4F338C
secondary
#9BB268
accent
#D652AC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F