#542E95#542E95
#542E95 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.160 H 295.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #542E95 |
|---|---|
| RGB | rgb(84, 46, 149) |
| HSL | hsl(262, 53%, 38%) |
| HSV | hsv(262, 69%, 58%) |
| CMYK | cmyk(43.6%, 69.1%, 0%, 41.6%) |
| CIE-LAB | lab(29.43, 40.65, -50.43) |
| CIE-LCH | lch(29.43, 64.77, 308.87°) |
| OKLab | oklab(40.95% 0.0684 -0.1441) |
| OKLCH | oklch(40.95% 0.16 295.4) |
| XYZ | xyz(10.0565, 6.0085, 29.0578) |
| Luminance | 0.0601 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.58
Darkslateblue
#483D8B
ΔE00 5.68
Blueberry
#464196
ΔE00 6.61
Indigo Blue
#3A18B1
ΔE00 6.90
Ocean Blue
#4F42B5
ΔE00 7.31
Indigo
#4B0082
ΔE00 7.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542E95 #6F952E
analogous
#2E3B95 #542E95 #872E95
triadic
#542E95 #95542E #2E9554
tetradic
#542E95 #952E3B #6F952E #2E9587
square
#542E95 #952E3B #6F952E #2E9587
split-complementary
#542E95 #95872E #3B952E
monochromatic
#1F1137 #3A2066 #542E95 #6F3DC3 #916CD2
Accessibility & contrast
On white
9.54
#542E95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#542E95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542E95
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542E95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542E95 | 1.00 | 9.54 | 2.20 | 9.54 |
| #FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#43475D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #542e95; /* rgb */ color: rgb(84, 46, 149); /* oklch */ color: oklch(40.9% 0.160 295.4);
Tailwind
colors: {
custom: {
50: '#8a6ab5',
500: '#542e95',
950: '#000000',
},
}SCSS
$custom: #542e95; $custom-light: #8a6ab5; $custom-dark: #000000;
JSON
{
"hex": "#542e95",
"rgb": {
"r": 84,
"g": 46,
"b": 149
},
"hsl": {
"h": 262.136,
"s": 52.821,
"l": 38.235
},
"oklch": {
"l": 0.40948,
"c": 0.15952,
"h": 295.4
},
"luminance": 0.06009
}Semantic roles & 50–950 ramp
primary
#542E95
secondary
#9AB966
accent
#DC4CA7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80