#4A156E#4A156E
#4A156E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.144 H 307.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #4A156E |
|---|---|
| RGB | rgb(74, 21, 110) |
| HSL | hsl(276, 68%, 26%) |
| HSV | hsv(276, 81%, 43%) |
| CMYK | cmyk(32.7%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(20.51, 40.67, -40.44) |
| CIE-LCH | lch(20.51, 57.35, 315.17°) |
| OKLab | oklab(33.31% 0.0869 -0.115) |
| OKLCH | oklch(33.31% 0.144 307.1) |
| XYZ | xyz(5.9061, 3.1180, 15.0395) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.61
Indigo
#4B0082
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 6.04
Plum Purple
#4E0550
ΔE00 7.13
Dark Indigo
#1F0954
ΔE00 8.18
Deep Violet
#490648
ΔE00 8.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A156E #396E15
analogous
#1D156E #4A156E #6E1565
triadic
#4A156E #6E4A15 #156E4A
tetradic
#4A156E #6E1D15 #396E15 #15656E
square
#4A156E #6E1D15 #396E15 #15656E
split-complementary
#4A156E #656E15 #156E1D
monochromatic
#11051A #270B3B #4A156E #6D1FA1 #8F29D5
Accessibility & contrast
On white
12.93
#4A156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#4A156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A156E
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A156E | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#442B41
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #4a156e; /* rgb */ color: rgb(74, 21, 110); /* oklch */ color: oklch(33.3% 0.144 307.1);
Tailwind
colors: {
custom: {
50: '#815998',
500: '#4a156e',
950: '#000000',
},
}SCSS
$custom: #4a156e; $custom-light: #815998; $custom-dark: #000000;
JSON
{
"hex": "#4a156e",
"rgb": {
"r": 74,
"g": 21,
"b": 110
},
"hsl": {
"h": 275.73,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.33313,
"c": 0.14414,
"h": 307.1
},
"luminance": 0.03118
}Semantic roles & 50–950 ramp
primary
#4A156E
secondary
#65A43A
accent
#EB3D83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E