#B172B9#B172B9
#B172B9 is a light, vivid purple. Relative luminance 0.249; OKLCH L 64.4% C 0.124 H 322.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #B172B9 |
|---|---|
| RGB | rgb(177, 114, 185) |
| HSL | hsl(293, 34%, 59%) |
| HSV | hsv(293, 38%, 73%) |
| CMYK | cmyk(4.3%, 38.4%, 0%, 27.5%) |
| CIE-LAB | lab(56.96, 36.58, -27.42) |
| CIE-LCH | lch(56.96, 45.72, 323.15°) |
| OKLab | oklab(64.38% 0.099 -0.075) |
| OKLCH | oklch(64.38% 0.124 322.8) |
| XYZ | xyz(32.9048, 24.8857, 48.9597) |
| Luminance | 0.2488 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 2.45
Wisteria
#A87DC2
ΔE00 4.40
Orchid (survey)
#C875C4
ΔE00 4.53
Dark Lilac
#9C6DA5
ΔE00 5.26
Deep Lilac
#966EBD
ΔE00 6.84
Purplish Pink
#CE5DAE
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B172B9 #7AB972
analogous
#8D72B9 #B172B9 #B9729D
triadic
#B172B9 #B9B172 #72B9B1
tetradic
#B172B9 #B98D72 #7AB972 #729DB9
square
#B172B9 #B98D72 #7AB972 #729DB9
split-complementary
#B172B9 #9DB972 #72B98D
monochromatic
#6F3B76 #964F9F #B172B9 #C89BCD #DEC4E2
Accessibility & contrast
On white
3.51
#B172B9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.98
#B172B9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B172B9
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B172B9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B172B9 | 1.00 | 3.51 | 5.98 | 5.98 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A84BC
Deuteranopia (green-blind)
#7A8BB7
Tritanopia (blue-blind)
#B37A8D
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #b172b9; /* rgb */ color: rgb(177, 114, 185); /* oklch */ color: oklch(64.4% 0.124 322.8);
Tailwind
colors: {
custom: {
50: '#c99cce',
500: '#b172b9',
950: '#000000',
},
}SCSS
$custom: #b172b9; $custom-light: #c99cce; $custom-dark: #000000;
JSON
{
"hex": "#b172b9",
"rgb": {
"r": 177,
"g": 114,
"b": 185
},
"hsl": {
"h": 293.239,
"s": 33.649,
"l": 58.627
},
"oklch": {
"l": 0.64375,
"c": 0.12417,
"h": 322.8
},
"luminance": 0.24885
}Semantic roles & 50–950 ramp
primary
#B172B9
secondary
#B9D1B5
accent
#CA5E6A
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E13
muted
#827E82