#B157CE#B157CE

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

Color values

HEX#B157CE
RGBrgb(177, 87, 206)
HSLhsl(285, 55%, 57%)
HSVhsv(285, 58%, 81%)
CMYKcmyk(14.1%, 57.8%, 0%, 19.2%)
CIE-LABlab(52.53, 54.88, -46.39)
CIE-LCHlch(52.53, 71.86, 319.79°)
OKLaboklab(61.41% 0.1399 -0.1295)
OKLCHoklch(61.41% 0.191 317.2)
XYZxyz(32.6786, 20.6209, 60.6394)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157CE #74CE57
analogous
#7557CE #B157CE #CE57B0
triadic
#B157CE #CEB157 #57CEB1
tetradic
#B157CE #CE7557 #74CE57 #57B0CE
square
#B157CE #CE7557 #74CE57 #57B0CE
split-complementary
#B157CE #B0CE57 #57CE75
monochromatic
#6D2784 #9434B3 #B157CE #C786DC #DDB6EA

Accessibility & contrast

On white

4.10
#B157CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#B157CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157CE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157CE#FFFFFF#000000##000000
##B157CE1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3978D2
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#B06A8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157ce;
/* rgb */ color: rgb(177, 87, 206);
/* oklch */ color: oklch(61.4% 0.191 317.2);
Tailwind
colors: {
  custom: {
    50: '#cb8bdd',
    500: '#b157ce',
    950: '#000000',
  },
}
SCSS
$custom: #b157ce;
$custom-light: #cb8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b157ce",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 285.378,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61411,
    "c": 0.19062,
    "h": 317.2
  },
  "luminance": 0.2062
}

Semantic roles & 50–950 ramp

primary
#B157CE
secondary
#B4D8A8
accent
#DE4A6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157CE

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

Preview Lab → · Contrast checker → · Palette generator →

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