#B157DB#B157DB

#B157DB is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.2% C 0.204 H 313.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B157DB
RGBrgb(177, 87, 219)
HSLhsl(281, 65%, 60%)
HSVhsv(281, 60%, 86%)
CMYKcmyk(19.2%, 60.3%, 0%, 14.1%)
CIE-LABlab(53.25, 57.55, -52.64)
CIE-LCHlch(53.25, 77.99, 317.55°)
OKLaboklab(62.17% 0.1402 -0.1477)
OKLCHoklch(62.17% 0.204 313.5)
XYZxyz(34.3237, 21.2790, 69.3033)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157DB #81DB57
analogous
#6F57DB #B157DB #DB57C3
triadic
#B157DB #DBB157 #57DBB1
tetradic
#B157DB #DB6F57 #81DB57 #57C3DB
square
#B157DB #DB6F57 #81DB57 #57C3DB
split-complementary
#B157DB #C3DB57 #57DB6F
monochromatic
#712097 #972BCA #B157DB #C889E6 #E0BCF1

Accessibility & contrast

On white

4.00
#B157DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#B157DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157DB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157DB#FFFFFF#000000##000000
##B157DB1.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#297ADF
Deuteranopia (green-blind)
#5181D8
Tritanopia (blue-blind)
#AD6F91
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b157db;
/* rgb */ color: rgb(177, 87, 219);
/* oklch */ color: oklch(62.2% 0.204 313.5);
Tailwind
colors: {
  custom: {
    50: '#cc8be7',
    500: '#b157db',
    950: '#000000',
  },
}
SCSS
$custom: #b157db;
$custom-light: #cc8be7;
$custom-dark: #000000;
JSON
{
  "hex": "#b157db",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 280.909,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.62169,
    "c": 0.20367,
    "h": 313.5
  },
  "luminance": 0.21278
}

Semantic roles & 50–950 ramp

primary
#B157DB
secondary
#BEE0AD
accent
#E84075
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157DB

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

Preview Lab → · Contrast checker → · Palette generator →

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