#4A177F#4A177F
#4A177F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.160 H 300.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #4A177F |
|---|---|
| RGB | rgb(74, 23, 127) |
| HSL | hsl(269, 69%, 29%) |
| HSV | hsv(269, 82%, 50%) |
| CMYK | cmyk(41.7%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(22.31, 44.08, -48.40) |
| CIE-LCH | lch(22.31, 65.46, 312.32°) |
| OKLab | oklab(35.04% 0.0804 -0.1384) |
| OKLCH | oklch(35.04% 0.16 300.1) |
| XYZ | xyz(6.9602, 3.6009, 20.4029) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.66
Royal Purple (survey)
#4B006E
ΔE00 4.10
Indigo (survey)
#380282
ΔE00 4.21
Midnight Blue
#191970
ΔE00 7.89
Indigo Blue
#3A18B1
ΔE00 7.94
Rebeccapurple
#663399
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A177F #4C7F17
analogous
#17187F #4A177F #7E177F
triadic
#4A177F #7F4A17 #177F4A
tetradic
#4A177F #7F1718 #4C7F17 #177F7E
square
#4A177F #7F1718 #4C7F17 #177F7E
split-complementary
#4A177F #7F7E17 #187F17
monochromatic
#0F051A #2C0E4B #4A177F #6820B3 #8736DB
Accessibility & contrast
On white
12.21
#4A177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4A177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A177F
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A177F | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3D344B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4a177f; /* rgb */ color: rgb(74, 23, 127); /* oklch */ color: oklch(35.0% 0.160 300.1);
Tailwind
colors: {
custom: {
50: '#825ba5',
500: '#4a177f',
950: '#000000',
},
}SCSS
$custom: #4a177f; $custom-light: #825ba5; $custom-dark: #000000;
JSON
{
"hex": "#4a177f",
"rgb": {
"r": 74,
"g": 23,
"b": 127
},
"hsl": {
"h": 269.423,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.35036,
"c": 0.16004,
"h": 300.1
},
"luminance": 0.03601
}Semantic roles & 50–950 ramp
primary
#4A177F
secondary
#7AB43E
accent
#EC3C96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F