#B171F5#B171F5
#B171F5 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.3% C 0.194 H 304.1°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).
Color values
| HEX | #B171F5 |
|---|---|
| RGB | rgb(177, 113, 245) |
| HSL | hsl(269, 87%, 70%) |
| HSV | hsv(269, 54%, 96%) |
| CMYK | cmyk(27.8%, 53.9%, 0%, 3.9%) |
| CIE-LAB | lab(59.66, 50.16, -56.96) |
| CIE-LCH | lch(59.66, 75.90, 311.37°) |
| OKLab | oklab(67.33% 0.1085 -0.1605) |
| OKLCH | oklch(67.33% 0.194 304.1) |
| XYZ | xyz(40.5144, 27.7501, 89.5904) |
| Luminance | 0.2775 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.57
Easter Purple
#C071FE
ΔE00 2.66
Light Purple
#BF77F6
ΔE00 3.03
Bright Lavender
#C760FF
ΔE00 4.64
Bright Lilac
#C95EFB
ΔE00 5.12
Lighter Purple
#A55AF4
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B171F5 #B5F571
analogous
#7173F5 #B171F5 #F371F5
triadic
#B171F5 #F5B171 #71F5B1
tetradic
#B171F5 #F57173 #B5F571 #71F5F3
square
#B171F5 #F57173 #B5F571 #71F5F3
split-complementary
#B171F5 #F5F371 #73F571
monochromatic
#7310DC #9238F1 #B171F5 #D0AAF9 #EFE2FD
Accessibility & contrast
On white
3.21
#B171F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.55
#B171F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B171F5
6.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B171F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B171F5 | 1.00 | 3.21 | 6.55 | 6.55 |
| #FFFFFF | 3.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#428EF9
Deuteranopia (green-blind)
#5790F2
Tritanopia (blue-blind)
#A58AA8
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #b171f5; /* rgb */ color: rgb(177, 113, 245); /* oklch */ color: oklch(67.3% 0.194 304.1);
Tailwind
colors: {
custom: {
50: '#cc9cf9',
500: '#b171f5',
950: '#000000',
},
}SCSS
$custom: #b171f5; $custom-light: #cc9cf9; $custom-dark: #000000;
JSON
{
"hex": "#b171f5",
"rgb": {
"r": 177,
"g": 113,
"b": 245
},
"hsl": {
"h": 269.091,
"s": 86.842,
"l": 70.196
},
"oklch": {
"l": 0.67333,
"c": 0.19373,
"h": 304.1
},
"luminance": 0.2775
}Semantic roles & 50–950 ramp
primary
#B171F5
secondary
#E1F3CF
accent
#E30276
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85