#4F126F#4F126F
#4F126F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.150 H 310.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #4F126F |
|---|---|
| RGB | rgb(79, 18, 111) |
| HSL | hsl(279, 72%, 25%) |
| HSV | hsv(279, 84%, 44%) |
| CMYK | cmyk(28.8%, 83.8%, 0%, 56.5%) |
| CIE-LAB | lab(20.99, 43.01, -40.27) |
| CIE-LCH | lch(20.99, 58.92, 316.89°) |
| OKLab | oklab(33.84% 0.0968 -0.1143) |
| OKLCH | oklch(33.84% 0.15 310.3) |
| XYZ | xyz(6.3094, 3.2427, 15.3294) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.29
Indigo
#4B0082
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 6.47
Plum Purple
#4E0550
ΔE00 6.71
Deep Violet
#490648
ΔE00 8.19
Darkish Purple
#751973
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F126F #326F12
analogous
#21126F #4F126F #6F1260
triadic
#4F126F #6F4F12 #126F4F
tetradic
#4F126F #6F2112 #326F12 #12606F
square
#4F126F #6F2112 #326F12 #12606F
split-complementary
#4F126F #606F12 #126F21
monochromatic
#13041A #2A093A #4F126F #741BA4 #9A23D8
Accessibility & contrast
On white
12.74
#4F126F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#4F126F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F126F
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F126F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F126F | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#4A2A41
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4f126f; /* rgb */ color: rgb(79, 18, 111); /* oklch */ color: oklch(33.8% 0.150 310.3);
Tailwind
colors: {
custom: {
50: '#845999',
500: '#4f126f',
950: '#000000',
},
}SCSS
$custom: #4f126f; $custom-light: #845999; $custom-dark: #000000;
JSON
{
"hex": "#4f126f",
"rgb": {
"r": 79,
"g": 18,
"b": 111
},
"hsl": {
"h": 279.355,
"s": 72.093,
"l": 25.294
},
"oklch": {
"l": 0.3384,
"c": 0.14975,
"h": 310.3
},
"luminance": 0.03243
}Semantic roles & 50–950 ramp
primary
#4F126F
secondary
#5DA637
accent
#EF3978
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E