#B158AA#B158AA

#B158AA is a mid, vivid purple. Relative luminance 0.192; OKLCH L 59.7% C 0.155 H 330.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B158AA
RGBrgb(177, 88, 170)
HSLhsl(305, 36%, 52%)
HSVhsv(305, 50%, 69%)
CMYKcmyk(0%, 50.3%, 4%, 30.6%)
CIE-LABlab(50.96, 47.53, -28.05)
CIE-LCHlch(50.96, 55.19, 329.45°)
OKLaboklab(59.68% 0.1344 -0.0766)
OKLCHoklch(59.68% 0.155 330.3)
XYZxyz(28.8766, 19.2306, 40.2133)
Luminance0.1923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158AA #58B15F
analogous
#8C58B1 #B158AA #B1587E
triadic
#B158AA #AAB158 #58AAB1
tetradic
#B158AA #B18C58 #58B15F #587EB1
square
#B158AA #B18C58 #58B15F #587EB1
split-complementary
#B158AA #7EB158 #58B18C
monochromatic
#612D5D #8B4185 #B158AA #C482BF #D8ABD4

Accessibility & contrast

On white

4.33
#B158AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#B158AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158AA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158AA#FFFFFF#000000##000000
##B158AA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5372AD
Deuteranopia (green-blind)
#6D7EA7
Tritanopia (blue-blind)
#B75F79
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b158aa;
/* rgb */ color: rgb(177, 88, 170);
/* oklch */ color: oklch(59.7% 0.155 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca8bc3',
    500: '#b158aa',
    950: '#000000',
  },
}
SCSS
$custom: #b158aa;
$custom-light: #ca8bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b158aa",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 170
  },
  "hsl": {
    "h": 304.719,
    "s": 36.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59678,
    "c": 0.15468,
    "h": 330.3
  },
  "luminance": 0.19229
}

Semantic roles & 50–950 ramp

primary
#B158AA
secondary
#9FC6A2
accent
#CC645B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #B158AA

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

Preview Lab → · Contrast checker → · Palette generator →

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