#B172C8#B172C8
#B172C8 is a light, vivid purple. Relative luminance 0.256; OKLCH L 65.1% C 0.141 H 316.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #B172C8 |
|---|---|
| RGB | rgb(177, 114, 200) |
| HSL | hsl(284, 44%, 62%) |
| HSV | hsv(284, 43%, 78%) |
| CMYK | cmyk(11.5%, 43%, 0%, 21.6%) |
| CIE-LAB | lab(57.61, 39.63, -34.97) |
| CIE-LCH | lch(57.61, 52.86, 318.57°) |
| OKLab | oklab(65.07% 0.1021 -0.0966) |
| OKLCH | oklch(65.07% 0.141 316.6) |
| XYZ | xyz(34.5726, 25.5528, 57.7434) |
| Luminance | 0.2555 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 3.79
Wisteria
#A87DC2
ΔE00 4.06
Orchid (survey)
#C875C4
ΔE00 5.44
Deep Lilac
#966EBD
ΔE00 5.75
Mediumorchid
#BA55D3
ΔE00 7.06
Amethyst
#9B5FC0
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B172C8 #89C872
analogous
#8672C8 #B172C8 #C872B4
triadic
#B172C8 #C8B172 #72C8B1
tetradic
#B172C8 #C88672 #89C872 #72B4C8
square
#B172C8 #C88672 #89C872 #72B4C8
split-complementary
#B172C8 #B4C872 #72C886
monochromatic
#73368A #9847B6 #B172C8 #C99ED9 #E2CAEA
Accessibility & contrast
On white
3.44
#B172C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.11
#B172C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B172C8
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B172C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B172C8 | 1.00 | 3.44 | 6.11 | 6.11 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6386CB
Deuteranopia (green-blind)
#748CC6
Tritanopia (blue-blind)
#B07E93
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #b172c8; /* rgb */ color: rgb(177, 114, 200); /* oklch */ color: oklch(65.1% 0.141 316.6);
Tailwind
colors: {
custom: {
50: '#ca9cd9',
500: '#b172c8',
950: '#000000',
},
}SCSS
$custom: #b172c8; $custom-light: #ca9cd9; $custom-dark: #000000;
JSON
{
"hex": "#b172c8",
"rgb": {
"r": 177,
"g": 114,
"b": 200
},
"hsl": {
"h": 283.953,
"s": 43.878,
"l": 61.569
},
"oklch": {
"l": 0.65072,
"c": 0.14053,
"h": 316.6
},
"luminance": 0.25552
}Semantic roles & 50–950 ramp
primary
#B172C8
secondary
#C3DBBB
accent
#B72E53
background
#FCF9FD
surface
#F8F2FA
border
#D1CCD3
text
#130E14
muted
#827E83