#B542CE#B542CE
#B542CE is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.221 H 319.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #B542CE |
|---|---|
| RGB | rgb(181, 66, 206) |
| HSL | hsl(289, 59%, 53%) |
| HSV | hsv(289, 68%, 81%) |
| CMYK | cmyk(12.1%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(49.71, 65.12, -50.85) |
| CIE-LCH | lch(49.71, 82.62, 322.01°) |
| OKLab | oklab(59.48% 0.1692 -0.1423) |
| OKLCH | oklch(59.48% 0.221 319.9) |
| XYZ | xyz(32.1435, 18.1780, 60.1961) |
| Luminance | 0.1818 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.20
Purple Pink
#D725DE
ΔE00 5.45
Purpley Pink
#C83CB9
ΔE00 5.67
Lightish Purple
#A552E6
ΔE00 5.74
Hot Purple
#CB00F5
ΔE00 5.92
Pinky Purple
#C94CBE
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B542CE #5BCE42
analogous
#6F42CE #B542CE #CE42A1
triadic
#B542CE #CEB542 #42CEB5
tetradic
#B542CE #CE6F42 #5BCE42 #42A1CE
square
#B542CE #CE6F42 #5BCE42 #42A1CE
split-complementary
#B542CE #A1CE42 #42CE6F
monochromatic
#671F77 #912BA7 #B542CE #C873DB #DBA3E7
Accessibility & contrast
On white
4.53
#B542CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#B542CE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B542CE
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B542CE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B542CE | 1.00 | 4.53 | 4.64 | 4.64 |
| #FFFFFF | 4.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#046ED2
Deuteranopia (green-blind)
#4E7ACB
Tritanopia (blue-blind)
#B65B83
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #b542ce; /* rgb */ color: rgb(181, 66, 206); /* oklch */ color: oklch(59.5% 0.221 319.9);
Tailwind
colors: {
custom: {
50: '#cf7fde',
500: '#b542ce',
950: '#000000',
},
}SCSS
$custom: #b542ce; $custom-light: #cf7fde; $custom-dark: #000000;
JSON
{
"hex": "#b542ce",
"rgb": {
"r": 181,
"g": 66,
"b": 206
},
"hsl": {
"h": 289.286,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.59483,
"c": 0.22106,
"h": 319.9
},
"luminance": 0.18176
}Semantic roles & 50–950 ramp
primary
#B542CE
secondary
#A3D498
accent
#E24662
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83