#542C8A#542C8A
#542C8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.149 H 299.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #542C8A |
|---|---|
| RGB | rgb(84, 44, 138) |
| HSL | hsl(266, 52%, 36%) |
| HSV | hsv(266, 68%, 54%) |
| CMYK | cmyk(39.1%, 68.1%, 0%, 45.9%) |
| CIE-LAB | lab(28.17, 38.71, -45.69) |
| CIE-LCH | lch(28.17, 59.89, 310.27°) |
| OKLab | oklab(39.77% 0.0721 -0.1302) |
| OKLCH | oklch(39.77% 0.149 299) |
| XYZ | xyz(9.1431, 5.5211, 24.6238) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.99
Darkslateblue
#483D8B
ΔE00 5.98
Indigo
#4B0082
ΔE00 6.95
Blueberry
#464196
ΔE00 7.48
Purple (survey)
#7E1E9C
ΔE00 8.09
Indigo Blue
#3A18B1
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542C8A #628A2C
analogous
#2C338A #542C8A #832C8A
triadic
#542C8A #8A542C #2C8A54
tetradic
#542C8A #8A2C33 #628A2C #2C8A83
square
#542C8A #8A2C33 #628A2C #2C8A83
split-complementary
#542C8A #8A832C #338A2C
monochromatic
#1C0E2D #381D5C #542C8A #703BB8 #9063CD
Accessibility & contrast
On white
9.98
#542C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#542C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542C8A
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542C8A | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#484257
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #542c8a; /* rgb */ color: rgb(84, 44, 138); /* oklch */ color: oklch(39.8% 0.149 299.0);
Tailwind
colors: {
custom: {
50: '#8968ad',
500: '#542c8a',
950: '#000000',
},
}SCSS
$custom: #542c8a; $custom-light: #8968ad; $custom-dark: #000000;
JSON
{
"hex": "#542c8a",
"rgb": {
"r": 84,
"g": 44,
"b": 138
},
"hsl": {
"h": 265.532,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.39768,
"c": 0.14885,
"h": 299
},
"luminance": 0.05521
}Semantic roles & 50–950 ramp
primary
#542C8A
secondary
#8FB45E
accent
#DB4D9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F