#B172F9#B172F9
#B172F9 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.7% C 0.197 H 303.1°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #B172F9 |
|---|---|
| RGB | rgb(177, 114, 249) |
| HSL | hsl(268, 92%, 71%) |
| HSV | hsv(268, 54%, 98%) |
| CMYK | cmyk(28.9%, 54.2%, 0%, 2.4%) |
| CIE-LAB | lab(60.09, 50.57, -58.49) |
| CIE-LCH | lch(60.09, 77.32, 310.85°) |
| OKLab | oklab(67.72% 0.1074 -0.165) |
| OKLCH | oklch(67.72% 0.197 303.1) |
| XYZ | xyz(41.2438, 28.2213, 92.8786) |
| Luminance | 0.2822 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.96
Easter Purple
#C071FE
ΔE00 2.60
Light Purple
#BF77F6
ΔE00 3.10
Bright Lavender
#C760FF
ΔE00 4.80
Bright Lilac
#C95EFB
ΔE00 5.35
Lighter Purple
#A55AF4
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B172F9 #BAF972
analogous
#7276F9 #B172F9 #F572F9
triadic
#B172F9 #F9B172 #72F9B1
tetradic
#B172F9 #F97276 #BAF972 #72F9F5
square
#B172F9 #F97276 #BAF972 #72F9F5
split-complementary
#B172F9 #F9F572 #76F972
monochromatic
#710AE7 #9137F7 #B172F9 #D1ADFB #EFE2FE
Accessibility & contrast
On white
3.16
#B172F9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.64
#B172F9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B172F9
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B172F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B172F9 | 1.00 | 3.16 | 6.64 | 6.64 |
| #FFFFFF | 3.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F8FFE
Deuteranopia (green-blind)
#5591F6
Tritanopia (blue-blind)
#A48CAB
Achromatopsia (no color)
#919191
Design tokens & code
CSS
--color: #b172f9; /* rgb */ color: rgb(177, 114, 249); /* oklch */ color: oklch(67.7% 0.197 303.1);
Tailwind
colors: {
custom: {
50: '#cc9cfc',
500: '#b172f9',
950: '#000000',
},
}SCSS
$custom: #b172f9; $custom-light: #cc9cfc; $custom-dark: #000000;
JSON
{
"hex": "#b172f9",
"rgb": {
"r": 177,
"g": 114,
"b": 249
},
"hsl": {
"h": 268,
"s": 91.837,
"l": 71.176
},
"oklch": {
"l": 0.67719,
"c": 0.19687,
"h": 303.1
},
"luminance": 0.28221
}Semantic roles & 50–950 ramp
primary
#B172F9
secondary
#E5F5D2
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85