#4F157C#4F157C
#4F157C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.160 H 304.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #4F157C |
|---|---|
| RGB | rgb(79, 21, 124) |
| HSL | hsl(274, 71%, 28%) |
| HSV | hsv(274, 83%, 49%) |
| CMYK | cmyk(36.3%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(22.49, 44.96, -46.16) |
| CIE-LCH | lch(22.49, 64.44, 314.24°) |
| OKLab | oklab(35.24% 0.0907 -0.1316) |
| OKLCH | oklch(35.24% 0.16 304.6) |
| XYZ | xyz(7.1299, 3.6539, 19.3945) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.78
Royal Purple (survey)
#4B006E
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 5.04
Rebeccapurple
#663399
ΔE00 7.94
Indigo Blue
#3A18B1
ΔE00 8.90
Midnight Blue
#191970
ΔE00 8.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F157C #427C15
analogous
#1B157C #4F157C #7C1575
triadic
#4F157C #7C4F15 #157C4F
tetradic
#4F157C #7C1B15 #427C15 #15757C
square
#4F157C #7C1B15 #427C15 #15757C
split-complementary
#4F157C #757C15 #157C1B
monochromatic
#11041A #2E0C48 #4F157C #701EB0 #9130DC
Accessibility & contrast
On white
12.13
#4F157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#4F157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F157C
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F157C | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4f157c; /* rgb */ color: rgb(79, 21, 124); /* oklch */ color: oklch(35.2% 0.160 304.6);
Tailwind
colors: {
custom: {
50: '#855ba3',
500: '#4f157c',
950: '#000000',
},
}SCSS
$custom: #4f157c; $custom-light: #855ba3; $custom-dark: #000000;
JSON
{
"hex": "#4f157c",
"rgb": {
"r": 79,
"g": 21,
"b": 124
},
"hsl": {
"h": 273.786,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.35237,
"c": 0.15984,
"h": 304.6
},
"luminance": 0.03654
}Semantic roles & 50–950 ramp
primary
#4F157C
secondary
#6FB13C
accent
#EE3A89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F