#B157B2#B157B2

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

Color values

HEX#B157B2
RGBrgb(177, 87, 178)
HSLhsl(299, 37%, 52%)
HSVhsv(299, 51%, 70%)
CMYKcmyk(0.6%, 51.1%, 0%, 30.2%)
CIE-LABlab(51.13, 49.47, -32.45)
CIE-LCHlch(51.13, 59.17, 326.74°)
OKLaboklab(59.92% 0.1371 -0.0892)
OKLCHoklch(59.92% 0.164 327)
XYZxyz(29.5750, 19.3795, 44.2937)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157B2 #58B257
analogous
#8457B2 #B157B2 #B25786
triadic
#B157B2 #B2B157 #57B2B1
tetradic
#B157B2 #B28457 #58B257 #5786B2
square
#B157B2 #B28457 #58B257 #5786B2
split-complementary
#B157B2 #86B257 #57B284
monochromatic
#612D62 #8B408C #B157B2 #C481C5 #D8ABD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B157B2#FFFFFF#000000##000000
##B157B21.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)
#4E72B5
Deuteranopia (green-blind)
#697EAF
Tritanopia (blue-blind)
#B6617C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b157b2;
/* rgb */ color: rgb(177, 87, 178);
/* oklch */ color: oklch(59.9% 0.164 327.0);
Tailwind
colors: {
  custom: {
    50: '#ca8ac9',
    500: '#b157b2',
    950: '#000000',
  },
}
SCSS
$custom: #b157b2;
$custom-light: #ca8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#b157b2",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 299.341,
    "s": 37.143,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59924,
    "c": 0.16358,
    "h": 327
  },
  "luminance": 0.19378
}

Semantic roles & 50–950 ramp

primary
#B157B2
secondary
#9FC69E
accent
#CD5B5C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B157B2

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

Preview Lab → · Contrast checker → · Palette generator →

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