#B157DC#B157DC

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

Color values

HEX#B157DC
RGBrgb(177, 87, 220)
HSLhsl(281, 66%, 60%)
HSVhsv(281, 60%, 86%)
CMYKcmyk(19.5%, 60.5%, 0%, 13.7%)
CIE-LABlab(53.31, 57.76, -53.11)
CIE-LCHlch(53.31, 78.47, 317.40°)
OKLaboklab(62.23% 0.1402 -0.1491)
OKLCHoklch(62.23% 0.205 313.2)
XYZxyz(34.4557, 21.3318, 69.9987)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157DC #82DC57
analogous
#6F57DC #B157DC #DC57C4
triadic
#B157DC #DCB157 #57DCB1
tetradic
#B157DC #DC6F57 #82DC57 #57C4DC
square
#B157DC #DC6F57 #82DC57 #57C4DC
split-complementary
#B157DC #C4DC57 #57DC6F
monochromatic
#722099 #972ACB #B157DC #C98AE7 #E0BCF1

Accessibility & contrast

On white

3.99
#B157DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#B157DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157DC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157DC#FFFFFF#000000##000000
##B157DC1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#277AE0
Deuteranopia (green-blind)
#5081D9
Tritanopia (blue-blind)
#AD6F92
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b157dc;
/* rgb */ color: rgb(177, 87, 220);
/* oklch */ color: oklch(62.2% 0.205 313.2);
Tailwind
colors: {
  custom: {
    50: '#cc8be7',
    500: '#b157dc',
    950: '#000000',
  },
}
SCSS
$custom: #b157dc;
$custom-light: #cc8be7;
$custom-dark: #000000;
JSON
{
  "hex": "#b157dc",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 280.602,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62229,
    "c": 0.20469,
    "h": 313.2
  },
  "luminance": 0.21331
}

Semantic roles & 50–950 ramp

primary
#B157DC
secondary
#BEE1AE
accent
#CD1853
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B157DC

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

Preview Lab → · Contrast checker → · Palette generator →

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