#B172F6#B172F6
#B172F6 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.5% C 0.193 H 303.7°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #B172F6 |
|---|---|
| RGB | rgb(177, 114, 246) |
| HSL | hsl(269, 88%, 71%) |
| HSV | hsv(269, 54%, 96%) |
| CMYK | cmyk(28%, 53.7%, 0%, 3.5%) |
| CIE-LAB | lab(59.92, 49.87, -57.10) |
| CIE-LCH | lch(59.92, 75.81, 311.13°) |
| OKLab | oklab(67.54% 0.1073 -0.1609) |
| OKLCH | oklch(67.54% 0.193 303.7) |
| XYZ | xyz(40.7796, 28.0357, 90.4340) |
| Luminance | 0.2804 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.78
Easter Purple
#C071FE
ΔE00 2.63
Light Purple
#BF77F6
ΔE00 2.95
Bright Lavender
#C760FF
ΔE00 4.79
Bright Lilac
#C95EFB
ΔE00 5.29
Lighter Purple
#A55AF4
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B172F6 #B7F672
analogous
#7275F6 #B172F6 #F372F6
triadic
#B172F6 #F6B172 #72F6B1
tetradic
#B172F6 #F67275 #B7F672 #72F6F3
square
#B172F6 #F67275 #B7F672 #72F6F3
split-complementary
#B172F6 #F6F372 #75F672
monochromatic
#720EDF #9138F2 #B172F6 #D1ACFA #EFE2FD
Accessibility & contrast
On white
3.18
#B172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.61
#B172F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B172F6
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B172F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B172F6 | 1.00 | 3.18 | 6.61 | 6.61 |
| #FFFFFF | 3.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#428FFA
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#A58BA9
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #b172f6; /* rgb */ color: rgb(177, 114, 246); /* oklch */ color: oklch(67.5% 0.193 303.7);
Tailwind
colors: {
custom: {
50: '#cc9cfa',
500: '#b172f6',
950: '#000000',
},
}SCSS
$custom: #b172f6; $custom-light: #cc9cfa; $custom-dark: #000000;
JSON
{
"hex": "#b172f6",
"rgb": {
"r": 177,
"g": 114,
"b": 246
},
"hsl": {
"h": 268.636,
"s": 88,
"l": 70.588
},
"oklch": {
"l": 0.67541,
"c": 0.1934,
"h": 303.7
},
"luminance": 0.28036
}Semantic roles & 50–950 ramp
primary
#B172F6
secondary
#E3F4D0
accent
#E50178
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85