#B157BF#B157BF

#B157BF is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.6% C 0.176 H 322.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B157BF
RGBrgb(177, 87, 191)
HSLhsl(292, 45%, 55%)
HSVhsv(292, 54%, 75%)
CMYKcmyk(7.3%, 54.5%, 0%, 25.1%)
CIE-LABlab(51.75, 51.92, -39.01)
CIE-LCHlch(51.75, 64.94, 323.08°)
OKLaboklab(60.59% 0.1388 -0.1081)
OKLCHoklch(60.59% 0.176 322.1)
XYZxyz(30.9426, 19.9265, 51.4964)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157BF #65BF57
analogous
#7D57BF #B157BF #BF5799
triadic
#B157BF #BFB157 #57BFB1
tetradic
#B157BF #BF7D57 #65BF57 #5799BF
square
#B157BF #BF7D57 #65BF57 #5799BF
split-complementary
#B157BF #99BF57 #57BF7D
monochromatic
#672B71 #903C9D #B157BF #C683D0 #DAB0E1

Accessibility & contrast

On white

4.21
#B157BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#B157BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157BF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157BF#FFFFFF#000000##000000
##B157BF1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4675C2
Deuteranopia (green-blind)
#637FBC
Tritanopia (blue-blind)
#B36583
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b157bf;
/* rgb */ color: rgb(177, 87, 191);
/* oklch */ color: oklch(60.6% 0.176 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ad3',
    500: '#b157bf',
    950: '#000000',
  },
}
SCSS
$custom: #b157bf;
$custom-light: #cb8ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b157bf",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 291.923,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60588,
    "c": 0.17588,
    "h": 322.1
  },
  "luminance": 0.19925
}

Semantic roles & 50–950 ramp

primary
#B157BF
secondary
#A9CFA3
accent
#D55365
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B157BF

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

Preview Lab → · Contrast checker → · Palette generator →

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