#B157C8#B157C8

#B157C8 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.185 H 319.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B157C8
RGBrgb(177, 87, 200)
HSLhsl(288, 51%, 56%)
HSVhsv(288, 57%, 78%)
CMYKcmyk(11.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(52.21, 53.68, -43.46)
CIE-LCHlch(52.21, 69.07, 321.01°)
OKLaboklab(61.08% 0.1395 -0.121)
OKLCHoklch(61.08% 0.185 319.1)
XYZxyz(31.9636, 20.3349, 56.8737)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157C8 #6EC857
analogous
#7957C8 #B157C8 #C857A7
triadic
#B157C8 #C8B157 #57C8B1
tetradic
#B157C8 #C87957 #6EC857 #57A7C8
square
#B157C8 #C87957 #6EC857 #57A7C8
split-complementary
#B157C8 #A7C857 #57C879
monochromatic
#6B297C #9338AA #B157C8 #C685D7 #DCB3E6

Accessibility & contrast

On white

4.14
#B157C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#B157C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157C8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157C8#FFFFFF#000000##000000
##B157C81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F76CC
Deuteranopia (green-blind)
#5E80C5
Tritanopia (blue-blind)
#B16887
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157c8;
/* rgb */ color: rgb(177, 87, 200);
/* oklch */ color: oklch(61.1% 0.185 319.1);
Tailwind
colors: {
  custom: {
    50: '#cb8bd9',
    500: '#b157c8',
    950: '#000000',
  },
}
SCSS
$custom: #b157c8;
$custom-light: #cb8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b157c8",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 287.788,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61075,
    "c": 0.18467,
    "h": 319.1
  },
  "luminance": 0.20334
}

Semantic roles & 50–950 ramp

primary
#B157C8
secondary
#B0D5A6
accent
#DA4E6A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157C8

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

Preview Lab → · Contrast checker → · Palette generator →

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