#B171CA#B171CA
#B171CA is a light, vivid purple. Relative luminance 0.254; OKLCH L 65.0% C 0.144 H 316.0°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #B171CA |
|---|---|
| RGB | rgb(177, 113, 202) |
| HSL | hsl(283, 46%, 62%) |
| HSV | hsv(283, 44%, 79%) |
| CMYK | cmyk(12.4%, 44.1%, 0%, 20.8%) |
| CIE-LAB | lab(57.48, 40.60, -36.30) |
| CIE-LCH | lch(57.48, 54.46, 318.19°) |
| OKLab | oklab(65.01% 0.1039 -0.1004) |
| OKLCH | oklch(65.01% 0.144 316) |
| XYZ | xyz(34.6957, 25.4226, 58.9450) |
| Luminance | 0.2542 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 4.11
Wisteria
#A87DC2
ΔE00 4.42
Deep Lilac
#966EBD
ΔE00 5.70
Orchid (survey)
#C875C4
ΔE00 5.75
Mediumorchid
#BA55D3
ΔE00 6.67
Amethyst
#9B5FC0
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B171CA #8ACA71
analogous
#8571CA #B171CA #CA71B7
triadic
#B171CA #CAB171 #71CAB1
tetradic
#B171CA #CA8571 #8ACA71 #71B7CA
square
#B171CA #CA8571 #8ACA71 #71B7CA
split-complementary
#B171CA #B7CA71 #71CA85
monochromatic
#74348C #9845B9 #B171CA #C99EDB #E2CAEB
Accessibility & contrast
On white
3.45
#B171CA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.08
#B171CA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B171CA
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B171CA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B171CA | 1.00 | 3.45 | 6.08 | 6.08 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6186CD
Deuteranopia (green-blind)
#728CC7
Tritanopia (blue-blind)
#B07D94
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #b171ca; /* rgb */ color: rgb(177, 113, 202); /* oklch */ color: oklch(65.0% 0.144 316.0);
Tailwind
colors: {
custom: {
50: '#ca9bda',
500: '#b171ca',
950: '#000000',
},
}SCSS
$custom: #b171ca; $custom-light: #ca9bda; $custom-dark: #000000;
JSON
{
"hex": "#b171ca",
"rgb": {
"r": 177,
"g": 113,
"b": 202
},
"hsl": {
"h": 283.146,
"s": 45.641,
"l": 61.765
},
"oklch": {
"l": 0.65008,
"c": 0.14448,
"h": 316
},
"luminance": 0.25422
}Semantic roles & 50–950 ramp
primary
#B171CA
secondary
#C4DCBB
accent
#B92D54
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83