#B542CF#B542CF
#B542CF is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.222 H 319.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #B542CF |
|---|---|
| RGB | rgb(181, 66, 207) |
| HSL | hsl(289, 59%, 54%) |
| HSV | hsv(289, 68%, 81%) |
| CMYK | cmyk(12.6%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(49.77, 65.30, -51.33) |
| CIE-LCH | lch(49.77, 83.06, 321.83°) |
| OKLab | oklab(59.54% 0.1691 -0.1437) |
| OKLCH | oklch(59.54% 0.222 319.7) |
| XYZ | xyz(32.2653, 18.2267, 60.8379) |
| Luminance | 0.1822 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.17
Purple Pink
#D725DE
ΔE00 5.43
Lightish Purple
#A552E6
ΔE00 5.61
Purpley Pink
#C83CB9
ΔE00 5.79
Hot Purple
#CB00F5
ΔE00 5.81
Pinky Purple
#C94CBE
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B542CF #5CCF42
analogous
#6E42CF #B542CF #CF42A2
triadic
#B542CF #CFB542 #42CFB5
tetradic
#B542CF #CF6E42 #5CCF42 #42A2CF
square
#B542CF #CF6E42 #5CCF42 #42A2CF
split-complementary
#B542CF #A2CF42 #42CF6E
monochromatic
#681F78 #922BA9 #B542CF #C873DB #DBA4E8
Accessibility & contrast
On white
4.52
#B542CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#B542CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B542CF
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B542CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B542CF | 1.00 | 4.52 | 4.64 | 4.64 |
| #FFFFFF | 4.52 | 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)
#006FD3
Deuteranopia (green-blind)
#4D7ACC
Tritanopia (blue-blind)
#B55C84
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #b542cf; /* rgb */ color: rgb(181, 66, 207); /* oklch */ color: oklch(59.5% 0.222 319.7);
Tailwind
colors: {
custom: {
50: '#cf80de',
500: '#b542cf',
950: '#000000',
},
}SCSS
$custom: #b542cf; $custom-light: #cf80de; $custom-dark: #000000;
JSON
{
"hex": "#b542cf",
"rgb": {
"r": 181,
"g": 66,
"b": 207
},
"hsl": {
"h": 288.936,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.59544,
"c": 0.22194,
"h": 319.7
},
"luminance": 0.18225
}Semantic roles & 50–950 ramp
primary
#B542CF
secondary
#A3D598
accent
#E34562
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83