#B157BC#B157BC

#B157BC is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.4% C 0.173 H 323.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B157BC
RGBrgb(177, 87, 188)
HSLhsl(293, 43%, 54%)
HSVhsv(293, 54%, 74%)
CMYKcmyk(5.9%, 53.7%, 0%, 26.3%)
CIE-LABlab(51.61, 51.34, -37.51)
CIE-LCHlch(51.61, 63.58, 323.85°)
OKLaboklab(60.43% 0.1384 -0.1037)
OKLCHoklch(60.43% 0.173 323.2)
XYZxyz(30.6159, 19.7958, 49.7755)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157BC #62BC57
analogous
#7F57BC #B157BC #BC5795
triadic
#B157BC #BCB157 #57BCB1
tetradic
#B157BC #BC7F57 #62BC57 #5795BC
square
#B157BC #BC7F57 #62BC57 #5795BC
split-complementary
#B157BC #95BC57 #57BC7F
monochromatic
#662C6D #8F3D99 #B157BC #C583CD #DAAFDF

Accessibility & contrast

On white

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

On black

4.96
#B157BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157BC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157BC#FFFFFF#000000##000000
##B157BC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4874BF
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#B46481
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b157bc;
/* rgb */ color: rgb(177, 87, 188);
/* oklch */ color: oklch(60.4% 0.173 323.2);
Tailwind
colors: {
  custom: {
    50: '#cb8ad0',
    500: '#b157bc',
    950: '#000000',
  },
}
SCSS
$custom: #b157bc;
$custom-light: #cb8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#b157bc",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 293.465,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60431,
    "c": 0.17299,
    "h": 323.2
  },
  "luminance": 0.19794
}

Semantic roles & 50–950 ramp

primary
#B157BC
secondary
#A7CDA2
accent
#D35563
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B157BC

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

Preview Lab → · Contrast checker → · Palette generator →

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