#B157CD#B157CD

#B157CD is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.190 H 317.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B157CD
RGBrgb(177, 87, 205)
HSLhsl(286, 54%, 57%)
HSVhsv(286, 58%, 80%)
CMYKcmyk(13.7%, 57.6%, 0%, 19.6%)
CIE-LABlab(52.48, 54.68, -45.90)
CIE-LCHlch(52.48, 71.39, 319.99°)
OKLaboklab(61.35% 0.1398 -0.1281)
OKLCHoklch(61.35% 0.19 317.5)
XYZxyz(32.5575, 20.5725, 60.0017)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157CD #73CD57
analogous
#7657CD #B157CD #CD57AE
triadic
#B157CD #CDB157 #57CDB1
tetradic
#B157CD #CD7657 #73CD57 #57AECD
square
#B157CD #CD7657 #73CD57 #57AECD
split-complementary
#B157CD #AECD57 #57CD76
monochromatic
#6D2783 #9435B2 #B157CD #C786DB #DDB5E9

Accessibility & contrast

On white

4.11
#B157CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#B157CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157CD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157CD#FFFFFF#000000##000000
##B157CD1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A77D1
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#B06A8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157cd;
/* rgb */ color: rgb(177, 87, 205);
/* oklch */ color: oklch(61.4% 0.190 317.5);
Tailwind
colors: {
  custom: {
    50: '#cb8bdd',
    500: '#b157cd',
    950: '#000000',
  },
}
SCSS
$custom: #b157cd;
$custom-light: #cb8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b157cd",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 285.763,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61354,
    "c": 0.18963,
    "h": 317.5
  },
  "luminance": 0.20571
}

Semantic roles & 50–950 ramp

primary
#B157CD
secondary
#B3D8A8
accent
#DD4A6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157CD

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

Preview Lab → · Contrast checker → · Palette generator →

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