#B170E4#B170E4
#B170E4 is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.2% C 0.176 H 308.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #B170E4 |
|---|---|
| RGB | rgb(177, 112, 228) |
| HSL | hsl(274, 68%, 67%) |
| HSV | hsv(274, 51%, 89%) |
| CMYK | cmyk(22.4%, 50.9%, 0%, 10.6%) |
| CIE-LAB | lab(58.54, 46.80, -49.28) |
| CIE-LCH | lch(58.54, 67.96, 313.52°) |
| OKLab | oklab(66.21% 0.1087 -0.1381) |
| OKLCH | oklch(66.21% 0.176 308.2) |
| XYZ | xyz(37.9265, 26.5374, 76.5080) |
| Luminance | 0.2654 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.74
Light Purple
#BF77F6
ΔE00 3.64
Easter Purple
#C071FE
ΔE00 4.11
Bright Lavender
#C760FF
ΔE00 5.34
Bright Lilac
#C95EFB
ΔE00 5.42
Mediumpurple
#9370DB
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B170E4 #A3E470
analogous
#7770E4 #B170E4 #E470DD
triadic
#B170E4 #E4B170 #70E4B1
tetradic
#B170E4 #E47770 #A3E470 #70DDE4
square
#B170E4 #E47770 #A3E470 #70DDE4
split-complementary
#B170E4 #DDE470 #70E477
monochromatic
#7623B7 #953DDA #B170E4 #CDA3EE #E9D7F7
Accessibility & contrast
On white
3.33
#B170E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.31
#B170E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B170E4
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B170E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B170E4 | 1.00 | 3.33 | 6.31 | 6.31 |
| #FFFFFF | 3.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#638EE1
Tritanopia (blue-blind)
#AA84A0
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #b170e4; /* rgb */ color: rgb(177, 112, 228); /* oklch */ color: oklch(66.2% 0.176 308.2);
Tailwind
colors: {
custom: {
50: '#cb9bed',
500: '#b170e4',
950: '#000000',
},
}SCSS
$custom: #b170e4; $custom-light: #cb9bed; $custom-dark: #000000;
JSON
{
"hex": "#b170e4",
"rgb": {
"r": 177,
"g": 112,
"b": 228
},
"hsl": {
"h": 273.621,
"s": 68.235,
"l": 66.667
},
"oklch": {
"l": 0.6621,
"c": 0.17569,
"h": 308.2
},
"luminance": 0.26537
}Semantic roles & 50–950 ramp
primary
#B170E4
secondary
#D6EBC5
accent
#D01567
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84