#B540AE#B540AE
#B540AE is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.5% C 0.197 H 330.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B540AE |
|---|---|
| RGB | rgb(181, 64, 174) |
| HSL | hsl(304, 48%, 48%) |
| HSV | hsv(304, 65%, 71%) |
| CMYK | cmyk(0%, 64.6%, 3.9%, 29%) |
| CIE-LAB | lab(47.69, 60.27, -35.47) |
| CIE-LCH | lch(47.69, 69.93, 329.52°) |
| OKLab | oklab(57.46% 0.1708 -0.0976) |
| OKLCH | oklch(57.46% 0.197 330.3) |
| XYZ | xyz(28.5293, 16.5486, 41.7278) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.59
Purpley Pink
#C83CB9
ΔE00 3.64
Medium Purple
#9E43A2
ΔE00 4.45
Pinky Purple
#C94CBE
ΔE00 5.64
Barney
#AC1DB8
ΔE00 6.26
Purply
#983FB2
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B540AE #40B547
analogous
#8140B5 #B540AE #B54073
triadic
#B540AE #AEB540 #40AEB5
tetradic
#B540AE #B58140 #40B547 #4073B5
square
#B540AE #B58140 #40B547 #4073B5
split-complementary
#B540AE #73B540 #40B581
monochromatic
#5B2057 #883083 #B540AE #CA68C4 #DA96D6
Accessibility & contrast
On white
4.87
#B540AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#B540AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B540AE
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B540AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B540AE | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3767B1
Deuteranopia (green-blind)
#6077AB
Tritanopia (blue-blind)
#BC4D71
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b540ae; /* rgb */ color: rgb(181, 64, 174); /* oklch */ color: oklch(57.5% 0.197 330.3);
Tailwind
colors: {
custom: {
50: '#ce7dc6',
500: '#b540ae',
950: '#000000',
},
}SCSS
$custom: #b540ae; $custom-light: #ce7dc6; $custom-dark: #000000;
JSON
{
"hex": "#b540ae",
"rgb": {
"r": 181,
"g": 64,
"b": 174
},
"hsl": {
"h": 303.59,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.57461,
"c": 0.19668,
"h": 330.3
},
"luminance": 0.16547
}Semantic roles & 50–950 ramp
primary
#B540AE
secondary
#8BC58F
accent
#D75950
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82