#B171F9#B171F9
#B171F9 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.6% C 0.198 H 303.2°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #B171F9 |
|---|---|
| RGB | rgb(177, 113, 249) |
| HSL | hsl(268, 92%, 71%) |
| HSV | hsv(268, 55%, 98%) |
| CMYK | cmyk(28.9%, 54.6%, 0%, 2.4%) |
| CIE-LAB | lab(59.89, 51.10, -58.81) |
| CIE-LCH | lch(59.89, 77.91, 310.99°) |
| OKLab | oklab(67.57% 0.1086 -0.1659) |
| OKLCH | oklch(67.57% 0.198 303.2) |
| XYZ | xyz(41.1316, 27.9970, 92.8412) |
| Luminance | 0.2800 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.80
Easter Purple
#C071FE
ΔE00 2.61
Light Purple
#BF77F6
ΔE00 3.20
Bright Lavender
#C760FF
ΔE00 4.65
Bright Lilac
#C95EFB
ΔE00 5.19
Lighter Purple
#A55AF4
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B171F9 #B9F971
analogous
#7175F9 #B171F9 #F571F9
triadic
#B171F9 #F9B171 #71F9B1
tetradic
#B171F9 #F97175 #B9F971 #71F9F5
square
#B171F9 #F97175 #B9F971 #71F9F5
split-complementary
#B171F9 #F9F571 #75F971
monochromatic
#710AE6 #9136F7 #B171F9 #D1ACFB #EFE2FE
Accessibility & contrast
On white
3.18
#B171F9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.60
#B171F9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B171F9
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B171F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B171F9 | 1.00 | 3.18 | 6.60 | 6.60 |
| #FFFFFF | 3.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D8FFE
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#A48BAA
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #b171f9; /* rgb */ color: rgb(177, 113, 249); /* oklch */ color: oklch(67.6% 0.198 303.2);
Tailwind
colors: {
custom: {
50: '#cc9cfc',
500: '#b171f9',
950: '#000000',
},
}SCSS
$custom: #b171f9; $custom-light: #cc9cfc; $custom-dark: #000000;
JSON
{
"hex": "#b171f9",
"rgb": {
"r": 177,
"g": 113,
"b": 249
},
"hsl": {
"h": 268.235,
"s": 91.892,
"l": 70.98
},
"oklch": {
"l": 0.6757,
"c": 0.19834,
"h": 303.2
},
"luminance": 0.27997
}Semantic roles & 50–950 ramp
primary
#B171F9
secondary
#E4F5D1
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85