#B158C8#B158C8

#B158C8 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.2% C 0.183 H 319.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B158C8
RGBrgb(177, 88, 200)
HSLhsl(288, 50%, 56%)
HSVhsv(288, 56%, 78%)
CMYKcmyk(11.5%, 56%, 0%, 21.6%)
CIE-LABlab(52.40, 53.19, -43.17)
CIE-LCHlch(52.40, 68.51, 320.94°)
OKLaboklab(61.21% 0.1382 -0.1201)
OKLCHoklch(61.21% 0.183 319)
XYZxyz(32.0451, 20.4980, 56.9009)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158C8 #6FC858
analogous
#7958C8 #B158C8 #C858A7
triadic
#B158C8 #C8B158 #58C8B1
tetradic
#B158C8 #C87958 #6FC858 #58A7C8
square
#B158C8 #C87958 #6FC858 #58A7C8
split-complementary
#B158C8 #A7C858 #58C879
monochromatic
#6B297D #9338AB #B158C8 #C786D7 #DCB4E6

Accessibility & contrast

On white

4.12
#B158C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#B158C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158C8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158C8#FFFFFF#000000##000000
##B158C81.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4077CC
Deuteranopia (green-blind)
#5F80C5
Tritanopia (blue-blind)
#B16988
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b158c8;
/* rgb */ color: rgb(177, 88, 200);
/* oklch */ color: oklch(61.2% 0.183 319.0);
Tailwind
colors: {
  custom: {
    50: '#cb8bd9',
    500: '#b158c8',
    950: '#000000',
  },
}
SCSS
$custom: #b158c8;
$custom-light: #cb8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b158c8",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 287.679,
    "s": 50.45,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61208,
    "c": 0.18314,
    "h": 319
  },
  "luminance": 0.20497
}

Semantic roles & 50–950 ramp

primary
#B158C8
secondary
#B0D5A7
accent
#DA4E6B
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #B158C8

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

Preview Lab → · Contrast checker → · Palette generator →

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