#B157CF#B157CF

#B157CF is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.5% C 0.192 H 316.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B157CF
RGBrgb(177, 87, 207)
HSLhsl(285, 56%, 58%)
HSVhsv(285, 58%, 81%)
CMYKcmyk(14.5%, 58%, 0%, 18.8%)
CIE-LABlab(52.59, 55.08, -46.88)
CIE-LCHlch(52.59, 72.33, 319.60°)
OKLaboklab(61.47% 0.1399 -0.1309)
OKLCHoklch(61.47% 0.192 316.9)
XYZxyz(32.8005, 20.6697, 61.2812)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157CF #75CF57
analogous
#7557CF #B157CF #CF57B1
triadic
#B157CF #CFB157 #57CFB1
tetradic
#B157CF #CF7557 #75CF57 #57B1CF
square
#B157CF #CF7557 #75CF57 #57B1CF
split-complementary
#B157CF #B1CF57 #57CF75
monochromatic
#6E2685 #9534B5 #B157CF #C787DD #DDB6EA

Accessibility & contrast

On white

4.09
#B157CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#B157CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157CF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157CF#FFFFFF#000000##000000
##B157CF1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3878D3
Deuteranopia (green-blind)
#5A80CC
Tritanopia (blue-blind)
#B06B8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b157cf;
/* rgb */ color: rgb(177, 87, 207);
/* oklch */ color: oklch(61.5% 0.192 316.9);
Tailwind
colors: {
  custom: {
    50: '#cb8bde',
    500: '#b157cf',
    950: '#000000',
  },
}
SCSS
$custom: #b157cf;
$custom-light: #cb8bde;
$custom-dark: #000000;
JSON
{
  "hex": "#b157cf",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 285,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61468,
    "c": 0.19162,
    "h": 316.9
  },
  "luminance": 0.20668
}

Semantic roles & 50–950 ramp

primary
#B157CF
secondary
#B5D9A9
accent
#DF496E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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