#542E96#542E96
#542E96 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.161 H 295.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #542E96 |
|---|---|
| RGB | rgb(84, 46, 150) |
| HSL | hsl(262, 53%, 38%) |
| HSV | hsv(262, 69%, 59%) |
| CMYK | cmyk(44%, 69.3%, 0%, 41.2%) |
| CIE-LAB | lab(29.51, 40.93, -50.91) |
| CIE-LCH | lch(29.51, 65.32, 308.80°) |
| OKLab | oklab(41.03% 0.0682 -0.1456) |
| OKLCH | oklch(41.03% 0.161 295.1) |
| XYZ | xyz(10.1367, 6.0406, 29.4801) |
| Luminance | 0.0604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.59
Darkslateblue
#483D8B
ΔE00 5.72
Blueberry
#464196
ΔE00 6.59
Indigo Blue
#3A18B1
ΔE00 6.78
Ocean Blue
#4F42B5
ΔE00 7.19
Indigo
#4B0082
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542E96 #70962E
analogous
#2E3C96 #542E96 #882E96
triadic
#542E96 #96542E #2E9654
tetradic
#542E96 #962E3C #70962E #2E9688
square
#542E96 #962E3C #70962E #2E9688
split-complementary
#542E96 #96882E #3C962E
monochromatic
#201138 #3A2067 #542E96 #6F3EC4 #926CD2
Accessibility & contrast
On white
9.51
#542E96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#542E96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542E96
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542E96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542E96 | 1.00 | 9.51 | 2.21 | 9.51 |
| #FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#42475E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #542e96; /* rgb */ color: rgb(84, 46, 150); /* oklch */ color: oklch(41.0% 0.161 295.1);
Tailwind
colors: {
custom: {
50: '#8a6ab6',
500: '#542e96',
950: '#000000',
},
}SCSS
$custom: #542e96; $custom-light: #8a6ab6; $custom-dark: #000000;
JSON
{
"hex": "#542e96",
"rgb": {
"r": 84,
"g": 46,
"b": 150
},
"hsl": {
"h": 261.923,
"s": 53.061,
"l": 38.431
},
"oklch": {
"l": 0.41031,
"c": 0.16074,
"h": 295.1
},
"luminance": 0.06041
}Semantic roles & 50–950 ramp
primary
#542E96
secondary
#9BB967
accent
#DC4BA7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80