#B157CA#B157CA

#B157CA is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.2% C 0.187 H 318.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B157CA
RGBrgb(177, 87, 202)
HSLhsl(287, 52%, 57%)
HSVhsv(287, 57%, 79%)
CMYKcmyk(12.4%, 56.9%, 0%, 20.8%)
CIE-LABlab(52.32, 54.08, -44.44)
CIE-LCHlch(52.32, 69.99, 320.59°)
OKLaboklab(61.19% 0.1397 -0.1238)
OKLCHoklch(61.19% 0.187 318.4)
XYZxyz(32.1989, 20.4290, 58.1128)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157CA #70CA57
analogous
#7857CA #B157CA #CA57A9
triadic
#B157CA #CAB157 #57CAB1
tetradic
#B157CA #CA7857 #70CA57 #57A9CA
square
#B157CA #CA7857 #70CA57 #57A9CA
split-complementary
#B157CA #A9CA57 #57CA78
monochromatic
#6C287F #9337AD #B157CA #C786D9 #DCB4E7

Accessibility & contrast

On white

4.13
#B157CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#B157CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157CA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157CA#FFFFFF#000000##000000
##B157CA1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CE
Deuteranopia (green-blind)
#5D80C7
Tritanopia (blue-blind)
#B16988
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157ca;
/* rgb */ color: rgb(177, 87, 202);
/* oklch */ color: oklch(61.2% 0.187 318.4);
Tailwind
colors: {
  custom: {
    50: '#cb8bda',
    500: '#b157ca',
    950: '#000000',
  },
}
SCSS
$custom: #b157ca;
$custom-light: #cb8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#b157ca",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 286.957,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61186,
    "c": 0.18664,
    "h": 318.4
  },
  "luminance": 0.20428
}

Semantic roles & 50–950 ramp

primary
#B157CA
secondary
#B1D6A7
accent
#DB4C6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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