#4A2F72#4A2F72
#4A2F72 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.3% C 0.112 H 299.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2F72 |
|---|---|
| RGB | rgb(74, 47, 114) |
| HSL | hsl(264, 42%, 32%) |
| HSV | hsv(264, 59%, 45%) |
| CMYK | cmyk(35.1%, 58.8%, 0%, 55.3%) |
| CIE-LAB | lab(25.87, 27.86, -34.35) |
| CIE-LCH | lch(25.87, 44.23, 309.04°) |
| OKLab | oklab(37.27% 0.0551 -0.0972) |
| OKLCH | oklch(37.27% 0.112 299.6) |
| XYZ | xyz(6.8771, 4.7037, 16.4619) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.20
Rebeccapurple
#663399
ΔE00 7.89
Blueberry
#464196
ΔE00 8.49
Royal Purple (survey)
#4B006E
ΔE00 8.84
Indigo
#4B0082
ΔE00 9.23
Midnight Blue
#191970
ΔE00 9.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2F72 #57722F
analogous
#2F3672 #4A2F72 #6C2F72
triadic
#4A2F72 #724A2F #2F724A
tetradic
#4A2F72 #722F36 #57722F #2F726C
square
#4A2F72 #722F36 #57722F #2F726C
split-complementary
#4A2F72 #726C2F #36722F
monochromatic
#120B1B #2E1D47 #4A2F72 #66419D #855FBD
Accessibility & contrast
On white
10.82
#4A2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4A2F72 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2F72
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2F72 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2F72 | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#1B3D70
Tritanopia (blue-blind)
#423D4B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4a2f72; /* rgb */ color: rgb(74, 47, 114); /* oklch */ color: oklch(37.3% 0.112 299.6);
Tailwind
colors: {
custom: {
50: '#7f689b',
500: '#4a2f72',
950: '#000000',
},
}SCSS
$custom: #4a2f72; $custom-light: #7f689b; $custom-dark: #000000;
JSON
{
"hex": "#4a2f72",
"rgb": {
"r": 74,
"g": 47,
"b": 114
},
"hsl": {
"h": 264.179,
"s": 41.615,
"l": 31.569
},
"oklch": {
"l": 0.3727,
"c": 0.11176,
"h": 299.6
},
"luminance": 0.04704
}Semantic roles & 50–950 ramp
primary
#4A2F72
secondary
#86A35A
accent
#D156A0
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060E
muted
#7C7A7E