#B171EA#B171EA
#B171EA is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.181 H 306.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #B171EA |
|---|---|
| RGB | rgb(177, 113, 234) |
| HSL | hsl(272, 74%, 68%) |
| HSV | hsv(272, 52%, 92%) |
| CMYK | cmyk(24.4%, 51.7%, 0%, 8.2%) |
| CIE-LAB | lab(59.07, 47.62, -51.80) |
| CIE-LCH | lch(59.07, 70.37, 312.59°) |
| OKLab | oklab(66.7% 0.1078 -0.1454) |
| OKLCH | oklch(66.7% 0.181 306.6) |
| XYZ | xyz(38.8848, 27.0982, 81.0079) |
| Luminance | 0.2710 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 1.83
Light Purple
#BF77F6
ΔE00 3.11
Easter Purple
#C071FE
ΔE00 3.41
Bright Lavender
#C760FF
ΔE00 5.02
Bright Lilac
#C95EFB
ΔE00 5.26
Mediumpurple
#9370DB
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B171EA #AAEA71
analogous
#7571EA #B171EA #EA71E6
triadic
#B171EA #EAB171 #71EAB1
tetradic
#B171EA #EA7571 #AAEA71 #71E6EA
square
#B171EA #EA7571 #AAEA71 #71E6EA
split-complementary
#B171EA #E6EA71 #71EA75
monochromatic
#751DC4 #943CE2 #B171EA #CEA6F2 #ECDCFA
Accessibility & contrast
On white
3.27
#B171EA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.42
#B171EA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B171EA
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B171EA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B171EA | 1.00 | 3.27 | 6.42 | 6.42 |
| #FFFFFF | 3.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C8CEE
Deuteranopia (green-blind)
#608FE7
Tritanopia (blue-blind)
#A887A3
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #b171ea; /* rgb */ color: rgb(177, 113, 234); /* oklch */ color: oklch(66.7% 0.181 306.6);
Tailwind
colors: {
custom: {
50: '#cb9cf1',
500: '#b171ea',
950: '#000000',
},
}SCSS
$custom: #b171ea; $custom-light: #cb9cf1; $custom-dark: #000000;
JSON
{
"hex": "#b171ea",
"rgb": {
"r": 177,
"g": 113,
"b": 234
},
"hsl": {
"h": 271.736,
"s": 74.233,
"l": 68.039
},
"oklch": {
"l": 0.66699,
"c": 0.18104,
"h": 306.6
},
"luminance": 0.27098
}Semantic roles & 50–950 ramp
primary
#B171EA
secondary
#DAEEC9
accent
#D60F6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85