#B171F6#B171F6
#B171F6 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.4% C 0.195 H 303.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).
Color values
| HEX | #B171F6 |
|---|---|
| RGB | rgb(177, 113, 246) |
| HSL | hsl(269, 88%, 70%) |
| HSV | hsv(269, 54%, 96%) |
| CMYK | cmyk(28%, 54.1%, 0%, 3.5%) |
| CIE-LAB | lab(59.72, 50.40, -57.42) |
| CIE-LCH | lch(59.72, 76.40, 311.27°) |
| OKLab | oklab(67.39% 0.1085 -0.1619) |
| OKLCH | oklch(67.39% 0.195 303.8) |
| XYZ | xyz(40.6675, 27.8113, 90.3966) |
| Luminance | 0.2781 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.58
Easter Purple
#C071FE
ΔE00 2.64
Light Purple
#BF77F6
ΔE00 3.06
Bright Lavender
#C760FF
ΔE00 4.64
Bright Lilac
#C95EFB
ΔE00 5.13
Lighter Purple
#A55AF4
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B171F6 #B6F671
analogous
#7174F6 #B171F6 #F371F6
triadic
#B171F6 #F6B171 #71F6B1
tetradic
#B171F6 #F67174 #B6F671 #71F6F3
square
#B171F6 #F67174 #B6F671 #71F6F3
split-complementary
#B171F6 #F6F371 #74F671
monochromatic
#720EDE #9137F2 #B171F6 #D1ABFA #EFE2FD
Accessibility & contrast
On white
3.20
#B171F6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.56
#B171F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B171F6
6.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B171F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B171F6 | 1.00 | 3.20 | 6.56 | 6.56 |
| #FFFFFF | 3.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#408EFA
Deuteranopia (green-blind)
#5690F3
Tritanopia (blue-blind)
#A58AA9
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #b171f6; /* rgb */ color: rgb(177, 113, 246); /* oklch */ color: oklch(67.4% 0.195 303.8);
Tailwind
colors: {
custom: {
50: '#cc9cfa',
500: '#b171f6',
950: '#000000',
},
}SCSS
$custom: #b171f6; $custom-light: #cc9cfa; $custom-dark: #000000;
JSON
{
"hex": "#b171f6",
"rgb": {
"r": 177,
"g": 113,
"b": 246
},
"hsl": {
"h": 268.872,
"s": 88.079,
"l": 70.392
},
"oklch": {
"l": 0.67392,
"c": 0.19489,
"h": 303.8
},
"luminance": 0.27811
}Semantic roles & 50–950 ramp
primary
#B171F6
secondary
#E2F4CF
accent
#E50177
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85