#B152CD#B152CD
#B152CD is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.7% C 0.197 H 317.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #B152CD |
|---|---|
| RGB | rgb(177, 82, 205) |
| HSL | hsl(286, 55%, 56%) |
| HSV | hsv(286, 60%, 80%) |
| CMYK | cmyk(13.7%, 60%, 0%, 19.6%) |
| CIE-LAB | lab(51.60, 57.06, -47.30) |
| CIE-LCH | lch(51.60, 74.12, 320.34°) |
| OKLab | oklab(60.71% 0.1461 -0.1321) |
| OKLCH | oklch(60.71% 0.197 317.9) |
| XYZ | xyz(32.1667, 19.7908, 59.8714) |
| Luminance | 0.1979 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.11
Amethyst
#9B5FC0
ΔE00 4.80
Lightish Purple
#A552E6
ΔE00 5.03
Pinky Purple
#C94CBE
ΔE00 5.92
Pinkish Purple
#D648D7
ΔE00 6.37
Purpley Pink
#C83CB9
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B152CD #6ECD52
analogous
#7452CD #B152CD #CD52AC
triadic
#B152CD #CDB152 #52CDB1
tetradic
#B152CD #CD7452 #6ECD52 #52ACCD
square
#B152CD #CD7452 #6ECD52 #52ACCD
split-complementary
#B152CD #ACCD52 #52CD74
monochromatic
#6B2580 #9333AF #B152CD #C681DB #DCB1E8
Accessibility & contrast
On white
4.24
#B152CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#B152CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B152CD
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B152CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B152CD | 1.00 | 4.24 | 4.96 | 4.96 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3175D1
Deuteranopia (green-blind)
#577ECA
Tritanopia (blue-blind)
#B06688
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #b152cd; /* rgb */ color: rgb(177, 82, 205); /* oklch */ color: oklch(60.7% 0.197 317.9);
Tailwind
colors: {
custom: {
50: '#cb88dd',
500: '#b152cd',
950: '#000000',
},
}SCSS
$custom: #b152cd; $custom-light: #cb88dd; $custom-dark: #000000;
JSON
{
"hex": "#b152cd",
"rgb": {
"r": 177,
"g": 82,
"b": 205
},
"hsl": {
"h": 286.341,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.60714,
"c": 0.19698,
"h": 317.9
},
"luminance": 0.19789
}Semantic roles & 50–950 ramp
primary
#B152CD
secondary
#B0D7A4
accent
#DE496B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83