#B157CB#B157CB

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

Color values

HEX#B157CB
RGBrgb(177, 87, 203)
HSLhsl(287, 53%, 57%)
HSVhsv(287, 57%, 80%)
CMYKcmyk(12.8%, 57.1%, 0%, 20.4%)
CIE-LABlab(52.37, 54.28, -44.93)
CIE-LCHlch(52.37, 70.46, 320.38°)
OKLaboklab(61.24% 0.1397 -0.1253)
OKLCHoklch(61.24% 0.188 318.1)
XYZxyz(32.3177, 20.4766, 58.7383)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157CB #71CB57
analogous
#7757CB #B157CB #CB57AB
triadic
#B157CB #CBB157 #57CBB1
tetradic
#B157CB #CB7757 #71CB57 #57ABCB
square
#B157CB #CB7757 #71CB57 #57ABCB
split-complementary
#B157CB #ABCB57 #57CB77
monochromatic
#6C2880 #9436AF #B157CB #C786D9 #DCB4E8

Accessibility & contrast

On white

4.12
#B157CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B157CB#FFFFFF#000000##000000
##B157CB1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C77CF
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#B16989
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157cb;
/* rgb */ color: rgb(177, 87, 203);
/* oklch */ color: oklch(61.2% 0.188 318.1);
Tailwind
colors: {
  custom: {
    50: '#cb8bdb',
    500: '#b157cb',
    950: '#000000',
  },
}
SCSS
$custom: #b157cb;
$custom-light: #cb8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b157cb",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 286.552,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.18764,
    "h": 318.1
  },
  "luminance": 0.20475
}

Semantic roles & 50–950 ramp

primary
#B157CB
secondary
#B2D7A7
accent
#DC4C6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157CB

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

Preview Lab → · Contrast checker → · Palette generator →

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