#4A2F99#4A2F99
#4A2F99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.163 H 288.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2F99 |
|---|---|
| RGB | rgb(74, 47, 153) |
| HSL | hsl(255, 53%, 39%) |
| HSV | hsv(255, 69%, 60%) |
| CMYK | cmyk(51.6%, 69.3%, 0%, 40%) |
| CIE-LAB | lab(28.87, 39.35, -53.84) |
| CIE-LCH | lch(28.87, 66.69, 306.16°) |
| OKLab | oklab(40.39% 0.052 -0.1545) |
| OKLCH | oklch(40.39% 0.163 288.6) |
| XYZ | xyz(9.5887, 5.7884, 30.7428) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.12
Rebeccapurple
#663399
ΔE00 5.40
Blueberry
#464196
ΔE00 5.58
Indigo Blue
#3A18B1
ΔE00 5.82
Ocean Blue
#4F42B5
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2F99 #7E992F
analogous
#2F4999 #4A2F99 #7F2F99
triadic
#4A2F99 #994A2F #2F994A
tetradic
#4A2F99 #992F49 #7E992F #2F997F
square
#4A2F99 #992F49 #7E992F #2F997F
split-complementary
#4A2F99 #997F2F #49992F
monochromatic
#1D123B #33216A #4A2F99 #6241C5 #896FD3
Accessibility & contrast
On white
9.73
#4A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#4A2F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2F99
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2F99 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#2E4A60
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #4a2f99; /* rgb */ color: rgb(74, 47, 153); /* oklch */ color: oklch(40.4% 0.163 288.6);
Tailwind
colors: {
custom: {
50: '#846ab8',
500: '#4a2f99',
950: '#000000',
},
}SCSS
$custom: #4a2f99; $custom-light: #846ab8; $custom-dark: #000000;
JSON
{
"hex": "#4a2f99",
"rgb": {
"r": 74,
"g": 47,
"b": 153
},
"hsl": {
"h": 255.283,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.40393,
"c": 0.16302,
"h": 288.6
},
"luminance": 0.05789
}Semantic roles & 50–950 ramp
primary
#4A2F99
secondary
#A6BA69
accent
#DC4BB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80