#B158BB#B158BB

#B158BB is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.5% C 0.170 H 323.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B158BB
RGBrgb(177, 88, 187)
HSLhsl(294, 42%, 54%)
HSVhsv(294, 53%, 73%)
CMYKcmyk(5.3%, 52.9%, 0%, 26.7%)
CIE-LABlab(51.74, 50.66, -36.71)
CIE-LCHlch(51.74, 62.56, 324.07°)
OKLaboklab(60.51% 0.137 -0.1014)
OKLCHoklch(60.51% 0.17 323.5)
XYZxyz(30.5900, 19.9159, 49.2369)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158BB #62BB58
analogous
#8058BB #B158BB #BB5894
triadic
#B158BB #BBB158 #58BBB1
tetradic
#B158BB #BB8058 #62BB58 #5894BB
square
#B158BB #BB8058 #62BB58 #5894BB
split-complementary
#B158BB #94BB58 #58BB80
monochromatic
#662C6C #8F3E98 #B158BB #C583CD #DAAFDE

Accessibility & contrast

On white

4.21
#B158BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#B158BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158BB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158BB#FFFFFF#000000##000000
##B158BB1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A75BE
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#B46581
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b158bb;
/* rgb */ color: rgb(177, 88, 187);
/* oklch */ color: oklch(60.5% 0.170 323.5);
Tailwind
colors: {
  custom: {
    50: '#cb8bd0',
    500: '#b158bb',
    950: '#000000',
  },
}
SCSS
$custom: #b158bb;
$custom-light: #cb8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b158bb",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 293.939,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60515,
    "c": 0.17045,
    "h": 323.5
  },
  "luminance": 0.19914
}

Semantic roles & 50–950 ramp

primary
#B158BB
secondary
#A7CDA2
accent
#D25662
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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