#542E97#542E97
#542E97 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.162 H 294.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #542E97 |
|---|---|
| RGB | rgb(84, 46, 151) |
| HSL | hsl(262, 53%, 39%) |
| HSV | hsv(262, 70%, 59%) |
| CMYK | cmyk(44.4%, 69.5%, 0%, 40.8%) |
| CIE-LAB | lab(29.60, 41.21, -51.39) |
| CIE-LCH | lch(29.60, 65.87, 308.72°) |
| OKLab | oklab(41.11% 0.0681 -0.147) |
| OKLCH | oklch(41.11% 0.162 294.8) |
| XYZ | xyz(10.2176, 6.0729, 29.9060) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.62
Darkslateblue
#483D8B
ΔE00 5.76
Blueberry
#464196
ΔE00 6.58
Indigo Blue
#3A18B1
ΔE00 6.67
Ocean Blue
#4F42B5
ΔE00 7.08
Indigo
#4B0082
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542E97 #71972E
analogous
#2E3D97 #542E97 #882E97
triadic
#542E97 #97542E #2E9754
tetradic
#542E97 #972E3D #71972E #2E9788
square
#542E97 #972E3D #71972E #2E9788
split-complementary
#542E97 #97882E #3D972E
monochromatic
#201139 #3A2068 #542E97 #6F3EC4 #926DD2
Accessibility & contrast
On white
9.48
#542E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#542E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542E97
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542E97 | 1.00 | 9.48 | 2.21 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#42485F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #542e97; /* rgb */ color: rgb(84, 46, 151); /* oklch */ color: oklch(41.1% 0.162 294.8);
Tailwind
colors: {
custom: {
50: '#8a6ab6',
500: '#542e97',
950: '#000000',
},
}SCSS
$custom: #542e97; $custom-light: #8a6ab6; $custom-dark: #000000;
JSON
{
"hex": "#542e97",
"rgb": {
"r": 84,
"g": 46,
"b": 151
},
"hsl": {
"h": 261.714,
"s": 53.299,
"l": 38.627
},
"oklch": {
"l": 0.41114,
"c": 0.16195,
"h": 294.8
},
"luminance": 0.06073
}Semantic roles & 50–950 ramp
primary
#542E97
secondary
#9CBA67
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80