#B170F2#B170F2
#B170F2 is a light, vivid violet. Relative luminance 0.273; OKLCH L 67.0% C 0.192 H 304.9°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #B170F2 |
|---|---|
| RGB | rgb(177, 112, 242) |
| HSL | hsl(270, 83%, 69%) |
| HSV | hsv(270, 54%, 95%) |
| CMYK | cmyk(26.9%, 53.7%, 0%, 5.1%) |
| CIE-LAB | lab(59.29, 49.99, -55.89) |
| CIE-LCH | lch(59.29, 74.98, 311.81°) |
| OKLab | oklab(67.01% 0.1096 -0.1574) |
| OKLCH | oklch(67.01% 0.192 304.9) |
| XYZ | xyz(39.9492, 27.3465, 87.1610) |
| Luminance | 0.2735 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.63
Easter Purple
#C071FE
ΔE00 2.82
Light Purple
#BF77F6
ΔE00 3.09
Bright Lavender
#C760FF
ΔE00 4.55
Bright Lilac
#C95EFB
ΔE00 4.95
Lighter Purple
#A55AF4
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B170F2 #B1F270
analogous
#7070F2 #B170F2 #F270F2
triadic
#B170F2 #F2B170 #70F2B1
tetradic
#B170F2 #F27070 #B1F270 #70F2F2
square
#B170F2 #F27070 #B1F270 #70F2F2
split-complementary
#B170F2 #F2F270 #70F270
monochromatic
#7413D4 #9238ED #B170F2 #D0A8F7 #EEE0FC
Accessibility & contrast
On white
3.25
#B170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.47
#B170F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B170F2
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B170F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B170F2 | 1.00 | 3.25 | 6.47 | 6.47 |
| #FFFFFF | 3.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#438DF6
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#A688A7
Achromatopsia (no color)
#8F8F8F
Design tokens & code
CSS
--color: #b170f2; /* rgb */ color: rgb(177, 112, 242); /* oklch */ color: oklch(67.0% 0.192 304.9);
Tailwind
colors: {
custom: {
50: '#cb9bf7',
500: '#b170f2',
950: '#000000',
},
}SCSS
$custom: #b170f2; $custom-light: #cb9bf7; $custom-dark: #000000;
JSON
{
"hex": "#b170f2",
"rgb": {
"r": 177,
"g": 112,
"b": 242
},
"hsl": {
"h": 270,
"s": 83.333,
"l": 69.412
},
"oklch": {
"l": 0.67007,
"c": 0.19177,
"h": 304.9
},
"luminance": 0.27346
}Semantic roles & 50–950 ramp
primary
#B170F2
secondary
#DFF2CC
accent
#E00673
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85