#54229F#54229F
#54229F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 294.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #54229F |
|---|---|
| RGB | rgb(84, 34, 159) |
| HSL | hsl(264, 65%, 38%) |
| HSV | hsv(264, 79%, 62%) |
| CMYK | cmyk(47.2%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(28.20, 49.28, -58.56) |
| CIE-LCH | lch(28.20, 76.53, 310.08°) |
| OKLab | oklab(40.34% 0.0773 -0.1679) |
| OKLCH | oklch(40.34% 0.185 294.7) |
| XYZ | xyz(10.4845, 5.5318, 33.3095) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.64
Rebeccapurple
#663399
ΔE00 5.14
Violet Blue
#510AC9
ΔE00 5.80
Indigo
#4B0082
ΔE00 6.34
Purple Blue
#5D21D0
ΔE00 6.74
Ultramarine
#2000B1
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#54229F #6D9F22
analogous
#222E9F #54229F #92229F
triadic
#54229F #9F5422 #229F54
tetradic
#54229F #9F222E #6D9F22 #229F92
square
#54229F #9F222E #6D9F22 #229F92
split-complementary
#54229F #9F9222 #2E9F22
monochromatic
#1F0C3A #39176D #54229F #6F2DD1 #915FDD
Accessibility & contrast
On white
9.97
#54229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#54229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #54229F
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##54229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##54229F | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3E4560
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #54229f; /* rgb */ color: rgb(84, 34, 159); /* oklch */ color: oklch(40.3% 0.185 294.7);
Tailwind
colors: {
custom: {
50: '#8c63bc',
500: '#54229f',
950: '#000000',
},
}SCSS
$custom: #54229f; $custom-light: #8c63bc; $custom-dark: #000000;
JSON
{
"hex": "#54229f",
"rgb": {
"r": 84,
"g": 34,
"b": 159
},
"hsl": {
"h": 264,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.40341,
"c": 0.18487,
"h": 294.7
},
"luminance": 0.05532
}Semantic roles & 50–950 ramp
primary
#54229F
secondary
#99C15B
accent
#E840A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81