#B158F8#B158F8

#B158F8 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.1% C 0.232 H 306.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B158F8
RGBrgb(177, 88, 248)
HSLhsl(273, 92%, 66%)
HSVhsv(273, 65%, 97%)
CMYKcmyk(28.6%, 64.5%, 0%, 2.7%)
CIE-LABlab(55.18, 63.34, -65.82)
CIE-LCHlch(55.18, 91.34, 313.90°)
OKLaboklab(64.12% 0.1379 -0.1864)
OKLCHoklch(64.12% 0.232 306.5)
XYZxyz(38.5608, 23.1043, 91.2169)
Luminance0.2310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158F8 #9FF858
analogous
#6158F8 #B158F8 #F858EF
triadic
#B158F8 #F8B158 #58F8B1
tetradic
#B158F8 #F86158 #9FF858 #58EFF8
square
#B158F8 #F86158 #9FF858 #58EFF8
split-complementary
#B158F8 #EFF858 #58F861
monochromatic
#7609CD #961DF6 #B158F8 #CC93FA #E8CDFD

Accessibility & contrast

On white

3.74
#B158F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#B158F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158F8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158F8#FFFFFF#000000##000000
##B158F81.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FD
Deuteranopia (green-blind)
#3285F4
Tritanopia (blue-blind)
#A57AA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b158f8;
/* rgb */ color: rgb(177, 88, 248);
/* oklch */ color: oklch(64.1% 0.232 306.5);
Tailwind
colors: {
  custom: {
    50: '#cd8cfb',
    500: '#b158f8',
    950: '#000000',
  },
}
SCSS
$custom: #b158f8;
$custom-light: #cd8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b158f8",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 248
  },
  "hsl": {
    "h": 273.375,
    "s": 91.954,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64124,
    "c": 0.23186,
    "h": 306.5
  },
  "luminance": 0.23104
}

Semantic roles & 50–950 ramp

primary
#B158F8
secondary
#D3F0BB
accent
#E60066
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B158F8

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

Preview Lab → · Contrast checker → · Palette generator →

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