#B158D9#B158D9

#B158D9 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.2% C 0.200 H 313.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B158D9
RGBrgb(177, 88, 217)
HSLhsl(281, 63%, 60%)
HSVhsv(281, 59%, 85%)
CMYKcmyk(18.4%, 59.4%, 0%, 14.9%)
CIE-LABlab(53.32, 56.66, -51.40)
CIE-LCHlch(53.32, 76.50, 317.78°)
OKLaboklab(62.18% 0.139 -0.1441)
OKLCHoklch(62.18% 0.2 313.9)
XYZxyz(34.1435, 21.3373, 67.9521)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158D9 #80D958
analogous
#7058D9 #B158D9 #D958C1
triadic
#B158D9 #D9B158 #58D9B1
tetradic
#B158D9 #D97058 #80D958 #58C1D9
square
#B158D9 #D97058 #80D958 #58C1D9
split-complementary
#B158D9 #C1D958 #58D970
monochromatic
#712295 #972DC7 #B158D9 #C88AE4 #E0BCF0

Accessibility & contrast

On white

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

On black

5.27
#B158D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158D9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158D9#FFFFFF#000000##000000
##B158D91.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7ADD
Deuteranopia (green-blind)
#5382D6
Tritanopia (blue-blind)
#AD6F90
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b158d9;
/* rgb */ color: rgb(177, 88, 217);
/* oklch */ color: oklch(62.2% 0.200 313.9);
Tailwind
colors: {
  custom: {
    50: '#cb8ce5',
    500: '#b158d9',
    950: '#000000',
  },
}
SCSS
$custom: #b158d9;
$custom-light: #cb8ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#b158d9",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 217
  },
  "hsl": {
    "h": 281.395,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62179,
    "c": 0.20022,
    "h": 313.9
  },
  "luminance": 0.21336
}

Semantic roles & 50–950 ramp

primary
#B158D9
secondary
#BDDFAD
accent
#E64275
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B158D9

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

Preview Lab → · Contrast checker → · Palette generator →

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