#4A156A#4A156A
#4A156A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.140 H 308.9°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #4A156A |
|---|---|
| RGB | rgb(74, 21, 106) |
| HSL | hsl(277, 67%, 25%) |
| HSV | hsv(277, 80%, 42%) |
| CMYK | cmyk(30.2%, 80.2%, 0%, 58.4%) |
| CIE-LAB | lab(20.18, 39.71, -38.38) |
| CIE-LCH | lch(20.18, 55.22, 315.97°) |
| OKLab | oklab(32.97% 0.0879 -0.1089) |
| OKLCH | oklch(32.97% 0.14 308.9) |
| XYZ | xyz(5.6932, 3.0329, 13.9184) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.82
Indigo
#4B0082
ΔE00 5.09
Plum Purple
#4E0550
ΔE00 6.39
Indigo (survey)
#380282
ΔE00 6.72
Deep Violet
#490648
ΔE00 7.69
Dark Indigo
#1F0954
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A156A #356A15
analogous
#20156A #4A156A #6A155F
triadic
#4A156A #6A4A15 #156A4A
tetradic
#4A156A #6A2015 #356A15 #155F6A
square
#4A156A #6A2015 #356A15 #155F6A
split-complementary
#4A156A #5F6A15 #156A20
monochromatic
#12051A #260B37 #4A156A #6E1F9D #9129D0
Accessibility & contrast
On white
13.07
#4A156A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#4A156A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A156A
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A156A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A156A | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#452A3F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #4a156a; /* rgb */ color: rgb(74, 21, 106); /* oklch */ color: oklch(33.0% 0.140 308.9);
Tailwind
colors: {
custom: {
50: '#805995',
500: '#4a156a',
950: '#000000',
},
}SCSS
$custom: #4a156a; $custom-light: #805995; $custom-dark: #000000;
JSON
{
"hex": "#4a156a",
"rgb": {
"r": 74,
"g": 21,
"b": 106
},
"hsl": {
"h": 277.412,
"s": 66.929,
"l": 24.902
},
"oklch": {
"l": 0.32972,
"c": 0.13995,
"h": 308.9
},
"luminance": 0.03033
}Semantic roles & 50–950 ramp
primary
#4A156A
secondary
#61A13A
accent
#EA3E7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E