#B540AA#B540AA
#B540AA is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.194 H 331.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #B540AA |
|---|---|
| RGB | rgb(181, 64, 170) |
| HSL | hsl(306, 48%, 48%) |
| HSV | hsv(306, 65%, 71%) |
| CMYK | cmyk(0%, 64.6%, 6.1%, 29%) |
| CIE-LAB | lab(47.49, 59.61, -33.42) |
| CIE-LCH | lch(47.49, 68.34, 330.72°) |
| OKLab | oklab(57.25% 0.1704 -0.0917) |
| OKLCH | oklch(57.25% 0.194 331.7) |
| XYZ | xyz(28.1451, 16.3949, 39.7046) |
| Luminance | 0.1639 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.35
Purpley Pink
#C83CB9
ΔE00 3.87
Medium Purple
#9E43A2
ΔE00 4.41
Pinky Purple
#C94CBE
ΔE00 5.88
Barney
#AC1DB8
ΔE00 6.62
Purply
#983FB2
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B540AA #40B54B
analogous
#8540B5 #B540AA #B5406F
triadic
#B540AA #AAB540 #40AAB5
tetradic
#B540AA #B58540 #40B54B #406FB5
square
#B540AA #B58540 #40B54B #406FB5
split-complementary
#B540AA #6FB540 #40B585
monochromatic
#5B2055 #883080 #B540AA #CA68C1 #DA96D3
Accessibility & contrast
On white
4.91
#B540AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#B540AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B540AA
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B540AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B540AA | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#6277A7
Tritanopia (blue-blind)
#BC4B6F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b540aa; /* rgb */ color: rgb(181, 64, 170); /* oklch */ color: oklch(57.3% 0.194 331.7);
Tailwind
colors: {
custom: {
50: '#ce7dc3',
500: '#b540aa',
950: '#000000',
},
}SCSS
$custom: #b540aa; $custom-light: #ce7dc3; $custom-dark: #000000;
JSON
{
"hex": "#b540aa",
"rgb": {
"r": 181,
"g": 64,
"b": 170
},
"hsl": {
"h": 305.641,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.57253,
"c": 0.19351,
"h": 331.7
},
"luminance": 0.16393
}Semantic roles & 50–950 ramp
primary
#B540AA
secondary
#8BC591
accent
#D75D50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81