#B240AA#B240AA
#B240AA is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.192 H 330.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #B240AA |
|---|---|
| RGB | rgb(178, 64, 170) |
| HSL | hsl(304, 47%, 47%) |
| HSV | hsv(304, 64%, 70%) |
| CMYK | cmyk(0%, 64%, 4.5%, 30.2%) |
| CIE-LAB | lab(47.02, 58.85, -34.19) |
| CIE-LCH | lch(47.02, 68.06, 329.85°) |
| OKLab | oklab(56.82% 0.1672 -0.094) |
| OKLCH | oklch(56.82% 0.192 330.7) |
| XYZ | xyz(27.4491, 16.0360, 39.6720) |
| Luminance | 0.1603 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.83
Medium Purple
#9E43A2
ΔE00 3.81
Purpley Pink
#C83CB9
ΔE00 4.36
Barney
#AC1DB8
ΔE00 6.16
Purply
#983FB2
ΔE00 6.23
Pinky Purple
#C94CBE
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B240AA #40B248
analogous
#8140B2 #B240AA #B24071
triadic
#B240AA #AAB240 #40AAB2
tetradic
#B240AA #B28140 #40B248 #4071B2
square
#B240AA #B28140 #40B248 #4071B2
split-complementary
#B240AA #71B240 #40B281
monochromatic
#582054 #85307F #B240AA #C867C1 #D894D4
Accessibility & contrast
On white
4.99
#B240AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#B240AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B240AA
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B240AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B240AA | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3865AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#B94C6F
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #b240aa; /* rgb */ color: rgb(178, 64, 170); /* oklch */ color: oklch(56.8% 0.192 330.7);
Tailwind
colors: {
custom: {
50: '#cc7dc3',
500: '#b240aa',
950: '#000000',
},
}SCSS
$custom: #b240aa; $custom-light: #cc7dc3; $custom-dark: #000000;
JSON
{
"hex": "#b240aa",
"rgb": {
"r": 178,
"g": 64,
"b": 170
},
"hsl": {
"h": 304.211,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.56822,
"c": 0.19176,
"h": 330.7
},
"luminance": 0.16034
}Semantic roles & 50–950 ramp
primary
#B240AA
secondary
#8AC48E
accent
#D75A51
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A12
muted
#827C81