#B158CB#B158CB

#B158CB is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.186 H 318.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B158CB
RGBrgb(177, 88, 203)
HSLhsl(286, 53%, 57%)
HSVhsv(286, 57%, 80%)
CMYKcmyk(12.8%, 56.7%, 0%, 20.4%)
CIE-LABlab(52.55, 53.79, -44.64)
CIE-LCHlch(52.55, 69.90, 320.31°)
OKLaboklab(61.37% 0.1384 -0.1244)
OKLCHoklch(61.37% 0.186 318)
XYZxyz(32.3992, 20.6396, 58.7655)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158CB #72CB58
analogous
#7858CB #B158CB #CB58AB
triadic
#B158CB #CBB158 #58CBB1
tetradic
#B158CB #CB7858 #72CB58 #58ABCB
square
#B158CB #CB7858 #72CB58 #58ABCB
split-complementary
#B158CB #ABCB58 #58CB78
monochromatic
#6D2881 #9437AF #B158CB #C787DA #DDB5E8

Accessibility & contrast

On white

4.10
#B158CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#B158CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158CB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158CB#FFFFFF#000000##000000
##B158CB1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D78CF
Deuteranopia (green-blind)
#5D80C8
Tritanopia (blue-blind)
#B16A89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b158cb;
/* rgb */ color: rgb(177, 88, 203);
/* oklch */ color: oklch(61.4% 0.186 318.0);
Tailwind
colors: {
  custom: {
    50: '#cb8bdb',
    500: '#b158cb',
    950: '#000000',
  },
}
SCSS
$custom: #b158cb;
$custom-light: #cb8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b158cb",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 286.435,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61374,
    "c": 0.18613,
    "h": 318
  },
  "luminance": 0.20638
}

Semantic roles & 50–950 ramp

primary
#B158CB
secondary
#B3D7A8
accent
#DC4C6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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