#4A157F#4A157F
#4A157F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 300.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #4A157F |
|---|---|
| RGB | rgb(74, 21, 127) |
| HSL | hsl(270, 72%, 29%) |
| HSV | hsv(270, 83%, 50%) |
| CMYK | cmyk(41.7%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(22.03, 44.87, -48.85) |
| CIE-LCH | lch(22.03, 66.33, 312.57°) |
| OKLab | oklab(34.85% 0.082 -0.1397) |
| OKLCH | oklch(34.85% 0.162 300.4) |
| XYZ | xyz(6.9220, 3.5244, 20.3902) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.34
Royal Purple (survey)
#4B006E
ΔE00 3.89
Indigo (survey)
#380282
ΔE00 4.00
Indigo Blue
#3A18B1
ΔE00 7.95
Midnight Blue
#191970
ΔE00 7.95
Royal
#0C1793
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A157F #4A7F15
analogous
#15157F #4A157F #7F157F
triadic
#4A157F #7F4A15 #157F4A
tetradic
#4A157F #7F1515 #4A7F15 #157F7F
square
#4A157F #7F1515 #4A7F15 #157F7F
split-complementary
#4A157F #7F7F15 #157F15
monochromatic
#0F041A #2B0C4A #4A157F #691EB4 #8731DD
Accessibility & contrast
On white
12.32
#4A157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#4A157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A157F
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A157F | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3E334B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4a157f; /* rgb */ color: rgb(74, 21, 127); /* oklch */ color: oklch(34.8% 0.162 300.4);
Tailwind
colors: {
custom: {
50: '#835aa5',
500: '#4a157f',
950: '#000000',
},
}SCSS
$custom: #4a157f; $custom-light: #835aa5; $custom-dark: #000000;
JSON
{
"hex": "#4a157f",
"rgb": {
"r": 74,
"g": 21,
"b": 127
},
"hsl": {
"h": 270,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.34846,
"c": 0.16197,
"h": 300.4
},
"luminance": 0.03524
}Semantic roles & 50–950 ramp
primary
#4A157F
secondary
#78B43C
accent
#EE3994
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F