#B158BF#B158BF

#B158BF is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.7% C 0.174 H 322.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B158BF
RGBrgb(177, 88, 191)
HSLhsl(292, 45%, 55%)
HSVhsv(292, 54%, 75%)
CMYKcmyk(7.3%, 53.9%, 0%, 25.1%)
CIE-LABlab(51.94, 51.43, -38.72)
CIE-LCHlch(51.94, 64.37, 323.02°)
OKLaboklab(60.72% 0.1374 -0.1072)
OKLCHoklch(60.72% 0.174 322)
XYZxyz(31.0241, 20.0896, 51.5236)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158BF #66BF58
analogous
#7E58BF #B158BF #BF5899
triadic
#B158BF #BFB158 #58BFB1
tetradic
#B158BF #BF7E58 #66BF58 #5899BF
square
#B158BF #BF7E58 #66BF58 #5899BF
split-complementary
#B158BF #99BF58 #58BF7E
monochromatic
#682B71 #903C9D #B158BF #C684D0 #DAB0E1

Accessibility & contrast

On white

4.19
#B158BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#B158BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158BF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158BF#FFFFFF#000000##000000
##B158BF1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4775C2
Deuteranopia (green-blind)
#647FBC
Tritanopia (blue-blind)
#B36683
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b158bf;
/* rgb */ color: rgb(177, 88, 191);
/* oklch */ color: oklch(60.7% 0.174 322.0);
Tailwind
colors: {
  custom: {
    50: '#cb8bd3',
    500: '#b158bf',
    950: '#000000',
  },
}
SCSS
$custom: #b158bf;
$custom-light: #cb8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#b158bf",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 291.845,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60724,
    "c": 0.17431,
    "h": 322
  },
  "luminance": 0.20088
}

Semantic roles & 50–950 ramp

primary
#B158BF
secondary
#AACFA4
accent
#D45465
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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