#B157BD#B157BD

#B157BD is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.5% C 0.174 H 322.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B157BD
RGBrgb(177, 87, 189)
HSLhsl(293, 44%, 54%)
HSVhsv(293, 54%, 74%)
CMYKcmyk(6.3%, 54%, 0%, 25.9%)
CIE-LABlab(51.65, 51.53, -38.01)
CIE-LCHlch(51.65, 64.03, 323.59°)
OKLaboklab(60.48% 0.1386 -0.1052)
OKLCHoklch(60.48% 0.174 322.8)
XYZxyz(30.7240, 19.8391, 50.3452)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157BD #63BD57
analogous
#7E57BD #B157BD #BD5796
triadic
#B157BD #BDB157 #57BDB1
tetradic
#B157BD #BD7E57 #63BD57 #5796BD
square
#B157BD #BD7E57 #63BD57 #5796BD
split-complementary
#B157BD #96BD57 #57BD7E
monochromatic
#662B6E #8F3D9A #B157BD #C583CE #DAAFE0

Accessibility & contrast

On white

4.23
#B157BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B157BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157BD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157BD#FFFFFF#000000##000000
##B157BD1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4774C0
Deuteranopia (green-blind)
#647FBA
Tritanopia (blue-blind)
#B46582
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b157bd;
/* rgb */ color: rgb(177, 87, 189);
/* oklch */ color: oklch(60.5% 0.174 322.8);
Tailwind
colors: {
  custom: {
    50: '#cb8ad1',
    500: '#b157bd',
    950: '#000000',
  },
}
SCSS
$custom: #b157bd;
$custom-light: #cb8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b157bd",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 292.941,
    "s": 43.59,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60483,
    "c": 0.17395,
    "h": 322.8
  },
  "luminance": 0.19838
}

Semantic roles & 50–950 ramp

primary
#B157BD
secondary
#A7CEA2
accent
#D35463
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B157BD

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

Preview Lab → · Contrast checker → · Palette generator →

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