#B158F9#B158F9
#B158F9 is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.2% C 0.233 H 306.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #B158F9 |
|---|---|
| RGB | rgb(177, 88, 249) |
| HSL | hsl(273, 93%, 66%) |
| HSV | hsv(273, 65%, 98%) |
| CMYK | cmyk(28.9%, 64.7%, 0%, 2.4%) |
| CIE-LAB | lab(55.24, 63.56, -66.27) |
| CIE-LCH | lch(55.24, 91.82, 313.80°) |
| OKLab | oklab(64.19% 0.1378 -0.1877) |
| OKLCH | oklch(64.19% 0.233 306.3) |
| XYZ | xyz(38.7164, 23.1665, 92.0361) |
| Luminance | 0.2317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.05
Lightish Purple
#A552E6
ΔE00 3.79
Bright Lavender
#C760FF
ΔE00 4.52
Bright Lilac
#C95EFB
ΔE00 4.68
Light Urple
#B36FF6
ΔE00 5.00
Easter Purple
#C071FE
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B158F9 #A0F958
analogous
#6058F9 #B158F9 #F958F0
triadic
#B158F9 #F9B158 #58F9B1
tetradic
#B158F9 #F96058 #A0F958 #58F0F9
square
#B158F9 #F96058 #A0F958 #58F0F9
split-complementary
#B158F9 #F0F958 #58F960
monochromatic
#7607CF #951DF7 #B158F9 #CD93FB #E8CEFD
Accessibility & contrast
On white
3.73
#B158F9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.63
#B158F9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B158F9
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B158F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B158F9 | 1.00 | 3.73 | 5.63 | 5.63 |
| #FFFFFF | 3.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0081FE
Deuteranopia (green-blind)
#3085F5
Tritanopia (blue-blind)
#A57AA1
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #b158f9; /* rgb */ color: rgb(177, 88, 249); /* oklch */ color: oklch(64.2% 0.233 306.3);
Tailwind
colors: {
custom: {
50: '#cd8cfc',
500: '#b158f9',
950: '#000000',
},
}SCSS
$custom: #b158f9; $custom-light: #cd8cfc; $custom-dark: #000000;
JSON
{
"hex": "#b158f9",
"rgb": {
"r": 177,
"g": 88,
"b": 249
},
"hsl": {
"h": 273.168,
"s": 93.064,
"l": 66.078
},
"oklch": {
"l": 0.6419,
"c": 0.23289,
"h": 306.3
},
"luminance": 0.23166
}Semantic roles & 50–950 ramp
primary
#B158F9
secondary
#D4F1BC
accent
#E60067
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86