#B158BC#B158BC

#B158BC is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.6% C 0.171 H 323.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B158BC
RGBrgb(177, 88, 188)
HSLhsl(293, 43%, 54%)
HSVhsv(293, 53%, 74%)
CMYKcmyk(5.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(51.79, 50.85, -37.22)
CIE-LCHlch(51.79, 63.01, 323.80°)
OKLaboklab(60.57% 0.1371 -0.1029)
OKLCHoklch(60.57% 0.171 323.1)
XYZxyz(30.6974, 19.9589, 49.8027)
Luminance0.1996 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158BC #63BC58
analogous
#7F58BC #B158BC #BC5895
triadic
#B158BC #BCB158 #58BCB1
tetradic
#B158BC #BC7F58 #63BC58 #5895BC
square
#B158BC #BC7F58 #63BC58 #5895BC
split-complementary
#B158BC #95BC58 #58BC7F
monochromatic
#662C6E #8F3E99 #B158BC #C584CE #DAAFDF

Accessibility & contrast

On white

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

On black

4.99
#B158BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158BC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158BC#FFFFFF#000000##000000
##B158BC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4975BF
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#B46582
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b158bc;
/* rgb */ color: rgb(177, 88, 188);
/* oklch */ color: oklch(60.6% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#cb8bd0',
    500: '#b158bc',
    950: '#000000',
  },
}
SCSS
$custom: #b158bc;
$custom-light: #cb8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b158bc",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 293.4,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60567,
    "c": 0.17141,
    "h": 323.1
  },
  "luminance": 0.19957
}

Semantic roles & 50–950 ramp

primary
#B158BC
secondary
#A7CDA3
accent
#D35563
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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