#4A176F#4A176F
#4A176F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.143 H 306.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #4A176F |
|---|---|
| RGB | rgb(74, 23, 111) |
| HSL | hsl(275, 66%, 26%) |
| HSV | hsv(275, 79%, 44%) |
| CMYK | cmyk(33.3%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(20.89, 40.07, -40.47) |
| CIE-LCH | lch(20.89, 56.94, 314.72°) |
| OKLab | oklab(33.61% 0.0848 -0.1151) |
| OKLCH | oklch(33.61% 0.143 306.4) |
| XYZ | xyz(5.9991, 3.2164, 15.3406) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 2.95
Indigo
#4B0082
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 6.06
Plum Purple
#4E0550
ΔE00 7.38
Dark Indigo
#1F0954
ΔE00 8.26
Midnight Blue
#191970
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A176F #3C6F17
analogous
#1E176F #4A176F #6F1768
triadic
#4A176F #6F4A17 #176F4A
tetradic
#4A176F #6F1E17 #3C6F17 #17686F
square
#4A176F #6F1E17 #3C6F17 #17686F
split-complementary
#4A176F #686F17 #176F1E
monochromatic
#110519 #280C3C #4A176F #6C22A2 #8D2DD3
Accessibility & contrast
On white
12.78
#4A176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#4A176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A176F
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A176F | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#432D42
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #4a176f; /* rgb */ color: rgb(74, 23, 111); /* oklch */ color: oklch(33.6% 0.143 306.4);
Tailwind
colors: {
custom: {
50: '#815a99',
500: '#4a176f',
950: '#000000',
},
}SCSS
$custom: #4a176f; $custom-light: #815a99; $custom-dark: #000000;
JSON
{
"hex": "#4a176f",
"rgb": {
"r": 74,
"g": 23,
"b": 111
},
"hsl": {
"h": 274.773,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.33606,
"c": 0.14293,
"h": 306.4
},
"luminance": 0.03216
}Semantic roles & 50–950 ramp
primary
#4A176F
secondary
#69A53D
accent
#E93F86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E