#B157BB#B157BB

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

Color values

HEX#B157BB
RGBrgb(177, 87, 187)
HSLhsl(294, 42%, 54%)
HSVhsv(294, 53%, 73%)
CMYKcmyk(5.3%, 53.5%, 0%, 26.7%)
CIE-LABlab(51.56, 51.15, -37.01)
CIE-LCHlch(51.56, 63.13, 324.12°)
OKLaboklab(60.38% 0.1383 -0.1023)
OKLCHoklch(60.38% 0.172 323.5)
XYZxyz(30.5084, 19.7529, 49.2098)
Luminance0.1975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157BB #61BB57
analogous
#7F57BB #B157BB #BB5793
triadic
#B157BB #BBB157 #57BBB1
tetradic
#B157BB #BB7F57 #61BB57 #5793BB
square
#B157BB #BB7F57 #61BB57 #5793BB
split-complementary
#B157BB #93BB57 #57BB7F
monochromatic
#652C6C #8E3D97 #B157BB #C583CD #D9AEDE

Accessibility & contrast

On white

4.24
#B157BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#B157BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157BB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157BB#FFFFFF#000000##000000
##B157BB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b157bb;
/* rgb */ color: rgb(177, 87, 187);
/* oklch */ color: oklch(60.4% 0.172 323.5);
Tailwind
colors: {
  custom: {
    50: '#cb8ad0',
    500: '#b157bb',
    950: '#000000',
  },
}
SCSS
$custom: #b157bb;
$custom-light: #cb8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#b157bb",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 294,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60379,
    "c": 0.17204,
    "h": 323.5
  },
  "luminance": 0.19751
}

Semantic roles & 50–950 ramp

primary
#B157BB
secondary
#A6CCA2
accent
#D25662
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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