#B542CD#B542CD
#B542CD is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.220 H 320.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #B542CD |
|---|---|
| RGB | rgb(181, 66, 205) |
| HSL | hsl(290, 58%, 53%) |
| HSV | hsv(290, 68%, 80%) |
| CMYK | cmyk(11.7%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(49.65, 64.93, -50.37) |
| CIE-LCH | lch(49.65, 82.18, 322.20°) |
| OKLab | oklab(59.42% 0.1692 -0.1409) |
| OKLCH | oklch(59.42% 0.22 320.2) |
| XYZ | xyz(32.0224, 18.1295, 59.5584) |
| Luminance | 0.1813 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.24
Purple Pink
#D725DE
ΔE00 5.48
Purpley Pink
#C83CB9
ΔE00 5.55
Lightish Purple
#A552E6
ΔE00 5.88
Hot Purple
#CB00F5
ΔE00 6.03
Pinky Purple
#C94CBE
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B542CD #5ACD42
analogous
#6F42CD #B542CD #CD42A0
triadic
#B542CD #CDB542 #42CDB5
tetradic
#B542CD #CD6F42 #5ACD42 #42A0CD
square
#B542CD #CD6F42 #5ACD42 #42A0CD
split-complementary
#B542CD #A0CD42 #42CD6F
monochromatic
#671F76 #912CA6 #B542CD #C872DA #DBA3E7
Accessibility & contrast
On white
4.54
#B542CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.63
#B542CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B542CD
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B542CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B542CD | 1.00 | 4.54 | 4.63 | 4.63 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#096ED1
Deuteranopia (green-blind)
#4F7ACA
Tritanopia (blue-blind)
#B65B83
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #b542cd; /* rgb */ color: rgb(181, 66, 205); /* oklch */ color: oklch(59.4% 0.220 320.2);
Tailwind
colors: {
custom: {
50: '#cf7fdd',
500: '#b542cd',
950: '#000000',
},
}SCSS
$custom: #b542cd; $custom-light: #cf7fdd; $custom-dark: #000000;
JSON
{
"hex": "#b542cd",
"rgb": {
"r": 181,
"g": 66,
"b": 205
},
"hsl": {
"h": 289.64,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.59422,
"c": 0.22019,
"h": 320.2
},
"luminance": 0.18128
}Semantic roles & 50–950 ramp
primary
#B542CD
secondary
#A2D397
accent
#E14661
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83