#54188E#54188E
#54188E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.176 H 300.8°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).
Color values
| HEX | #54188E |
|---|---|
| RGB | rgb(84, 24, 142) |
| HSL | hsl(271, 71%, 33%) |
| HSV | hsv(271, 83%, 56%) |
| CMYK | cmyk(40.8%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.23, 49.02, -52.97) |
| CIE-LCH | lch(25.23, 72.17, 312.78°) |
| OKLab | oklab(37.8% 0.0904 -0.1514) |
| OKLCH | oklch(37.8% 0.176 300.8) |
| XYZ | xyz(8.8641, 4.4910, 25.9858) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.54
Indigo (survey)
#380282
ΔE00 5.49
Royal Purple (survey)
#4B006E
ΔE00 5.95
Rebeccapurple
#663399
ΔE00 6.22
Indigo Blue
#3A18B1
ΔE00 6.52
Purple (survey)
#7E1E9C
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#54188E #528E18
analogous
#19188E #54188E #8E188D
triadic
#54188E #8E5418 #188E54
tetradic
#54188E #8E1918 #528E18 #188D8E
square
#54188E #8E1918 #528E18 #188D8E
split-complementary
#54188E #8D8E18 #188E19
monochromatic
#160625 #350F5A #54188E #7321C2 #9241DF
Accessibility & contrast
On white
11.06
#54188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#54188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #54188E
11.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##54188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##54188E | 1.00 | 11.06 | 1.90 | 11.06 |
| #FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#473954
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #54188e; /* rgb */ color: rgb(84, 24, 142); /* oklch */ color: oklch(37.8% 0.176 300.8);
Tailwind
colors: {
custom: {
50: '#8a5eb0',
500: '#54188e',
950: '#000000',
},
}SCSS
$custom: #54188e; $custom-light: #8a5eb0; $custom-dark: #000000;
JSON
{
"hex": "#54188e",
"rgb": {
"r": 84,
"g": 24,
"b": 142
},
"hsl": {
"h": 270.508,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.37798,
"c": 0.17637,
"h": 300.8
},
"luminance": 0.04491
}Semantic roles & 50–950 ramp
primary
#54188E
secondary
#80C042
accent
#EE3A92
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0511
muted
#7D7980