#4F117E#4F117E
#4F117E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.165 H 304.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #4F117E |
|---|---|
| RGB | rgb(79, 17, 126) |
| HSL | hsl(274, 76%, 28%) |
| HSV | hsv(274, 87%, 49%) |
| CMYK | cmyk(37.3%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(22.19, 46.83, -47.92) |
| CIE-LCH | lch(22.19, 67.01, 314.34°) |
| OKLab | oklab(35.09% 0.093 -0.1367) |
| OKLCH | oklch(35.09% 0.165 304.2) |
| XYZ | xyz(7.1899, 3.5695, 20.0448) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.13
Royal Purple (survey)
#4B006E
ΔE00 3.24
Indigo (survey)
#380282
ΔE00 4.59
Rebeccapurple
#663399
ΔE00 8.19
Indigo Blue
#3A18B1
ΔE00 8.58
Midnight Blue
#191970
ΔE00 8.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F117E #407E11
analogous
#18117E #4F117E #7E1177
triadic
#4F117E #7E4F11 #117E4F
tetradic
#4F117E #7E1811 #407E11 #11777E
square
#4F117E #7E1811 #407E11 #11777E
split-complementary
#4F117E #777E11 #117E18
monochromatic
#11041B #2D0A48 #4F117E #7118B4 #9227E2
Accessibility & contrast
On white
12.25
#4F117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#4F117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F117E
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F117E | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#46304A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4f117e; /* rgb */ color: rgb(79, 17, 126); /* oklch */ color: oklch(35.1% 0.165 304.2);
Tailwind
colors: {
custom: {
50: '#8659a4',
500: '#4f117e',
950: '#000000',
},
}SCSS
$custom: #4f117e; $custom-light: #8659a4; $custom-dark: #000000;
JSON
{
"hex": "#4f117e",
"rgb": {
"r": 79,
"g": 17,
"b": 126
},
"hsl": {
"h": 274.128,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.35086,
"c": 0.16541,
"h": 304.2
},
"luminance": 0.0357
}Semantic roles & 50–950 ramp
primary
#4F117E
secondary
#6DB437
accent
#F33587
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F