#B158AE#B158AE

#B158AE is a mid, vivid purple. Relative luminance 0.194; OKLCH L 59.9% C 0.158 H 328.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B158AE
RGBrgb(177, 88, 174)
HSLhsl(302, 36%, 52%)
HSVhsv(302, 50%, 69%)
CMYKcmyk(0%, 50.3%, 1.7%, 30.6%)
CIE-LABlab(51.13, 48.24, -30.11)
CIE-LCHlch(51.13, 56.87, 328.03°)
OKLaboklab(59.87% 0.1351 -0.0825)
OKLCHoklch(59.87% 0.158 328.6)
XYZxyz(29.2608, 19.3842, 42.2365)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B158AE #58B15B
analogous
#8758B1 #B158AE #B15882
triadic
#B158AE #AEB158 #58AEB1
tetradic
#B158AE #B18758 #58B15B #5882B1
square
#B158AE #B18758 #58B15B #5882B1
split-complementary
#B158AE #82B158 #58B187
monochromatic
#612D5F #8B4188 #B158AE #C482C2 #D8ABD6

Accessibility & contrast

On white

4.31
#B158AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B158AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B158AE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B158AE#FFFFFF#000000##000000
##B158AE1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5172B1
Deuteranopia (green-blind)
#6C7EAB
Tritanopia (blue-blind)
#B6617B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b158ae;
/* rgb */ color: rgb(177, 88, 174);
/* oklch */ color: oklch(59.9% 0.158 328.6);
Tailwind
colors: {
  custom: {
    50: '#ca8bc6',
    500: '#b158ae',
    950: '#000000',
  },
}
SCSS
$custom: #b158ae;
$custom-light: #ca8bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b158ae",
  "rgb": {
    "r": 177,
    "g": 88,
    "b": 174
  },
  "hsl": {
    "h": 302.022,
    "s": 36.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59868,
    "c": 0.15827,
    "h": 328.6
  },
  "luminance": 0.19383
}

Semantic roles & 50–950 ramp

primary
#B158AE
secondary
#9FC6A0
accent
#CC5F5B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #B158AE

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

Preview Lab → · Contrast checker → · Palette generator →

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