#4F186F#4F186F
#4F186F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.143 H 309.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #4F186F |
|---|---|
| RGB | rgb(79, 24, 111) |
| HSL | hsl(278, 64%, 26%) |
| HSV | hsv(278, 78%, 44%) |
| CMYK | cmyk(28.8%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.81, 40.64, -38.94) |
| CIE-LCH | lch(21.81, 56.28, 316.23°) |
| OKLab | oklab(34.42% 0.0912 -0.1104) |
| OKLCH | oklch(34.42% 0.143 309.6) |
| XYZ | xyz(6.4198, 3.4634, 15.3662) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.23
Indigo
#4B0082
ΔE00 4.94
Plum Purple
#4E0550
ΔE00 6.87
Indigo (survey)
#380282
ΔE00 6.94
Darkish Purple
#751973
ΔE00 8.16
Deep Violet
#490648
ΔE00 8.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F186F #386F18
analogous
#24186F #4F186F #6F1864
triadic
#4F186F #6F4F18 #186F4F
tetradic
#4F186F #6F2418 #386F18 #18646F
square
#4F186F #6F2418 #386F18 #18646F
split-complementary
#4F186F #646F18 #186F24
monochromatic
#120519 #2B0D3D #4F186F #7323A1 #962FD2
Accessibility & contrast
On white
12.41
#4F186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#4F186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F186F
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F186F | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#4A2D42
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4f186f; /* rgb */ color: rgb(79, 24, 111); /* oklch */ color: oklch(34.4% 0.143 309.6);
Tailwind
colors: {
custom: {
50: '#845b99',
500: '#4f186f',
950: '#000000',
},
}SCSS
$custom: #4f186f; $custom-light: #845b99; $custom-dark: #000000;
JSON
{
"hex": "#4f186f",
"rgb": {
"r": 79,
"g": 24,
"b": 111
},
"hsl": {
"h": 277.931,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.34417,
"c": 0.14321,
"h": 309.6
},
"luminance": 0.03463
}Semantic roles & 50–950 ramp
primary
#4F186F
secondary
#64A53E
accent
#E7407E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E