#542B99#542B99
#542B99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.168 H 294.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #542B99 |
|---|---|
| RGB | rgb(84, 43, 153) |
| HSL | hsl(262, 56%, 38%) |
| HSV | hsv(262, 72%, 60%) |
| CMYK | cmyk(45.1%, 71.9%, 0%, 40%) |
| CIE-LAB | lab(29.19, 43.35, -53.28) |
| CIE-LCH | lch(29.19, 68.69, 309.14°) |
| OKLab | oklab(40.88% 0.0708 -0.1525) |
| OKLCH | oklch(40.88% 0.168 294.9) |
| XYZ | xyz(10.2683, 5.9122, 30.7310) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.91
Indigo Blue
#3A18B1
ΔE00 6.05
Darkslateblue
#483D8B
ΔE00 6.46
Blueberry
#464196
ΔE00 7.19
Indigo
#4B0082
ΔE00 7.28
Violet Blue
#510AC9
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542B99 #70992B
analogous
#2B3999 #542B99 #8B2B99
triadic
#542B99 #99542B #2B9954
tetradic
#542B99 #992B39 #70992B #2B998B
square
#542B99 #992B39 #70992B #2B998B
split-complementary
#542B99 #998B2B #39992B
monochromatic
#201039 #3A1E69 #542B99 #6F3AC8 #9269D5
Accessibility & contrast
On white
9.62
#542B99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#542B99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542B99
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542B99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542B99 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#41475F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #542b99; /* rgb */ color: rgb(84, 43, 153); /* oklch */ color: oklch(40.9% 0.168 294.9);
Tailwind
colors: {
custom: {
50: '#8b68b8',
500: '#542b99',
950: '#000000',
},
}SCSS
$custom: #542b99; $custom-light: #8b68b8; $custom-dark: #000000;
JSON
{
"hex": "#542b99",
"rgb": {
"r": 84,
"g": 43,
"b": 153
},
"hsl": {
"h": 262.364,
"s": 56.122,
"l": 38.431
},
"oklch": {
"l": 0.40876,
"c": 0.1681,
"h": 294.9
},
"luminance": 0.05912
}Semantic roles & 50–950 ramp
primary
#542B99
secondary
#9BBC64
accent
#DF48A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80