#B157C2#B157C2

#B157C2 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.7% C 0.179 H 321.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B157C2
RGBrgb(177, 87, 194)
HSLhsl(290, 47%, 55%)
HSVhsv(290, 55%, 76%)
CMYKcmyk(8.8%, 55.2%, 0%, 23.9%)
CIE-LABlab(51.90, 52.50, -40.50)
CIE-LCHlch(51.90, 66.30, 322.35°)
OKLaboklab(60.75% 0.1391 -0.1124)
OKLCHoklch(60.75% 0.179 321.1)
XYZxyz(31.2761, 20.0599, 53.2530)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157C2 #68C257
analogous
#7B57C2 #B157C2 #C2579E
triadic
#B157C2 #C2B157 #57C2B1
tetradic
#B157C2 #C27B57 #68C257 #579EC2
square
#B157C2 #C27B57 #68C257 #579EC2
split-complementary
#B157C2 #9EC257 #57C27B
monochromatic
#692A74 #913BA1 #B157C2 #C684D2 #DBB1E3

Accessibility & contrast

On white

4.19
#B157C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B157C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157C2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157C2#FFFFFF#000000##000000
##B157C21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4375C5
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#B36684
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b157c2;
/* rgb */ color: rgb(177, 87, 194);
/* oklch */ color: oklch(60.7% 0.179 321.1);
Tailwind
colors: {
  custom: {
    50: '#cb8ad5',
    500: '#b157c2',
    950: '#000000',
  },
}
SCSS
$custom: #b157c2;
$custom-light: #cb8ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b157c2",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 194
  },
  "hsl": {
    "h": 290.467,
    "s": 46.725,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60748,
    "c": 0.17879,
    "h": 321.1
  },
  "luminance": 0.20059
}

Semantic roles & 50–950 ramp

primary
#B157C2
secondary
#ABD1A4
accent
#D65167
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #B157C2

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

Preview Lab → · Contrast checker → · Palette generator →

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