#542CBD#542CBD
#542CBD is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.209 H 287.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #542CBD |
|---|---|
| RGB | rgb(84, 44, 189) |
| HSL | hsl(257, 62%, 46%) |
| HSV | hsv(257, 77%, 74%) |
| CMYK | cmyk(55.6%, 76.7%, 0%, 25.9%) |
| CIE-LAB | lab(32.61, 52.88, -69.27) |
| CIE-LCH | lch(32.61, 87.15, 307.35°) |
| OKLab | oklab(44.28% 0.0611 -0.1994) |
| OKLCH | oklch(44.28% 0.209 287) |
| XYZ | xyz(13.7394, 7.3596, 48.8308) |
| Luminance | 0.0736 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.93
Blurple
#5539CC
ΔE00 3.59
Blue With A Hint Of Purple
#533CC6
ΔE00 3.81
Violet Blue
#510AC9
ΔE00 4.10
Indigo Blue
#3A18B1
ΔE00 5.21
Bluey Purple
#6241C7
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#542CBD #95BD2C
analogous
#2C4CBD #542CBD #9C2CBD
triadic
#542CBD #BD542C #2CBD54
tetradic
#542CBD #BD2C4C #95BD2C #2CBD9C
square
#542CBD #BD2C4C #95BD2C #2CBD9C
split-complementary
#542CBD #BD9C2C #4CBD2C
monochromatic
#28155A #3E208B #542CBD #7550D6 #9C82E2
Accessibility & contrast
On white
8.50
#542CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#542CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #542CBD
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##542CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##542CBD | 1.00 | 8.50 | 2.47 | 8.50 |
| #FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#255573
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #542cbd; /* rgb */ color: rgb(84, 44, 189); /* oklch */ color: oklch(44.3% 0.209 287.0);
Tailwind
colors: {
custom: {
50: '#906ad2',
500: '#542cbd',
950: '#000000',
},
}SCSS
$custom: #542cbd; $custom-light: #906ad2; $custom-dark: #000000;
JSON
{
"hex": "#542cbd",
"rgb": {
"r": 84,
"g": 44,
"b": 189
},
"hsl": {
"h": 256.552,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.44283,
"c": 0.20854,
"h": 287
},
"luminance": 0.0736
}Semantic roles & 50–950 ramp
primary
#542CBD
secondary
#B4CB7A
accent
#E542B8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83