#4A258E#4A258E
#4A258E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.162 H 293.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #4A258E |
|---|---|
| RGB | rgb(74, 37, 142) |
| HSL | hsl(261, 59%, 35%) |
| HSV | hsv(261, 74%, 56%) |
| CMYK | cmyk(47.9%, 73.9%, 0%, 44.3%) |
| CIE-LAB | lab(25.96, 41.57, -51.83) |
| CIE-LCH | lch(25.96, 66.45, 308.73°) |
| OKLab | oklab(38.02% 0.0638 -0.1486) |
| OKLCH | oklch(38.02% 0.162 293.2) |
| XYZ | xyz(8.3667, 4.7317, 26.0584) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.57
Rebeccapurple
#663399
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 5.94
Indigo (survey)
#380282
ΔE00 6.19
Darkslateblue
#483D8B
ΔE00 6.86
Royal
#0C1793
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A258E #698E25
analogous
#25348E #4A258E #7E258E
triadic
#4A258E #8E4A25 #258E4A
tetradic
#4A258E #8E2534 #698E25 #258E7E
square
#4A258E #8E2534 #698E25 #258E7E
split-complementary
#4A258E #8E7E25 #348E25
monochromatic
#170C2D #31185D #4A258E #6332BF #855AD4
Accessibility & contrast
On white
10.79
#4A258E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#4A258E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A258E
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A258E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A258E | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#354057
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4a258e; /* rgb */ color: rgb(74, 37, 142); /* oklch */ color: oklch(38.0% 0.162 293.2);
Tailwind
colors: {
custom: {
50: '#8363b0',
500: '#4a258e',
950: '#000000',
},
}SCSS
$custom: #4a258e; $custom-light: #8363b0; $custom-dark: #000000;
JSON
{
"hex": "#4a258e",
"rgb": {
"r": 74,
"g": 37,
"b": 142
},
"hsl": {
"h": 261.143,
"s": 58.659,
"l": 35.098
},
"oklch": {
"l": 0.38019,
"c": 0.16169,
"h": 293.2
},
"luminance": 0.04732
}Semantic roles & 50–950 ramp
primary
#4A258E
secondary
#96B956
accent
#E246AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0511
muted
#7C7A80