#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
RGBrgb(177, 88, 249)
HSLhsl(273, 93%, 66%)
HSVhsv(273, 65%, 98%)
CMYKcmyk(28.9%, 64.7%, 0%, 2.4%)
CIE-LABlab(55.24, 63.56, -66.27)
CIE-LCHlch(55.24, 91.82, 313.80°)
OKLaboklab(64.19% 0.1378 -0.1877)
OKLCHoklch(64.19% 0.233 306.3)
XYZxyz(38.7164, 23.1665, 92.0361)
Luminance0.2317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##B158F91.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.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

Preview Lab

Preview with #B158F9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B158F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva