#B158D8#B158D8

#B158D8 is a light, vivid purple. Relative luminance 0.213; OKLCH L 62.1% C 0.199 H 314.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B158D8
RGBrgb(177, 88, 216)
HSLhsl(282, 62%, 60%)
HSVhsv(282, 59%, 85%)
CMYKcmyk(18.1%, 59.3%, 0%, 15.3%)
CIE-LABlab(53.26, 56.45, -50.92)
CIE-LCHlch(53.26, 76.02, 317.94°)
OKLaboklab(62.12% 0.1389 -0.1427)
OKLCHoklch(62.12% 0.199 314.2)
XYZxyz(34.0138, 21.2854, 67.2692)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158D8 #7FD858
analogous
#7158D8 #B158D8 #D858BF
triadic
#B158D8 #D8B158 #58D8B1
tetradic
#B158D8 #D87158 #7FD858 #58BFD8
square
#B158D8 #D87158 #7FD858 #58BFD8
split-complementary
#B158D8 #BFD858 #58D871
monochromatic
#712293 #972EC5 #B158D8 #C88AE4 #DFBBEF

Accessibility & contrast

On white

3.99
#B158D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#B158D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158D8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158D8#FFFFFF#000000##000000
##B158D81.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#307ADC
Deuteranopia (green-blind)
#5481D5
Tritanopia (blue-blind)
#AE6F90
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b158d8;
/* rgb */ color: rgb(177, 88, 216);
/* oklch */ color: oklch(62.1% 0.199 314.2);
Tailwind
colors: {
  custom: {
    50: '#cb8ce5',
    500: '#b158d8',
    950: '#000000',
  },
}
SCSS
$custom: #b158d8;
$custom-light: #cb8ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#b158d8",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 216
  },
  "hsl": {
    "h": 281.719,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.6212,
    "c": 0.1992,
    "h": 314.2
  },
  "luminance": 0.21284
}

Semantic roles & 50–950 ramp

primary
#B158D8
secondary
#BCDFAD
accent
#E54374
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158D8

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

Preview Lab → · Contrast checker → · Palette generator →

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