#B170E8#B170E8
#B170E8 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.4% C 0.180 H 307.2°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #B170E8 |
|---|---|
| RGB | rgb(177, 112, 232) |
| HSL | hsl(273, 72%, 67%) |
| HSV | hsv(273, 52%, 91%) |
| CMYK | cmyk(23.7%, 51.7%, 0%, 9%) |
| CIE-LAB | lab(58.75, 47.70, -51.18) |
| CIE-LCH | lch(58.75, 69.96, 312.98°) |
| OKLab | oklab(66.43% 0.109 -0.1436) |
| OKLCH | oklch(66.43% 0.18 307.2) |
| XYZ | xyz(38.4882, 26.7621, 79.4663) |
| Luminance | 0.2676 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.09
Light Purple
#BF77F6
ΔE00 3.35
Easter Purple
#C071FE
ΔE00 3.64
Bright Lavender
#C760FF
ΔE00 5.02
Bright Lilac
#C95EFB
ΔE00 5.20
Mediumpurple
#9370DB
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B170E8 #A7E870
analogous
#7570E8 #B170E8 #E870E3
triadic
#B170E8 #E8B170 #70E8B1
tetradic
#B170E8 #E87570 #A7E870 #70E3E8
square
#B170E8 #E87570 #A7E870 #70E3E8
split-complementary
#B170E8 #E3E870 #70E875
monochromatic
#751FBF #943BE0 #B170E8 #CEA5F0 #EBD9F9
Accessibility & contrast
On white
3.31
#B170E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.35
#B170E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B170E8
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B170E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B170E8 | 1.00 | 3.31 | 6.35 | 6.35 |
| #FFFFFF | 3.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C8BEC
Deuteranopia (green-blind)
#608EE5
Tritanopia (blue-blind)
#A985A2
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #b170e8; /* rgb */ color: rgb(177, 112, 232); /* oklch */ color: oklch(66.4% 0.180 307.2);
Tailwind
colors: {
custom: {
50: '#cb9bf0',
500: '#b170e8',
950: '#000000',
},
}SCSS
$custom: #b170e8; $custom-light: #cb9bf0; $custom-dark: #000000;
JSON
{
"hex": "#b170e8",
"rgb": {
"r": 177,
"g": 112,
"b": 232
},
"hsl": {
"h": 272.5,
"s": 72.289,
"l": 67.451
},
"oklch": {
"l": 0.66434,
"c": 0.18028,
"h": 307.2
},
"luminance": 0.26762
}Semantic roles & 50–950 ramp
primary
#B170E8
secondary
#D8EDC7
accent
#D4116B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84