#B157B3#B157B3

#B157B3 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.0% C 0.165 H 326.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B157B3
RGBrgb(177, 87, 179)
HSLhsl(299, 38%, 52%)
HSVhsv(299, 51%, 70%)
CMYKcmyk(1.1%, 51.4%, 0%, 29.8%)
CIE-LABlab(51.17, 49.66, -32.96)
CIE-LCHlch(51.17, 59.60, 326.42°)
OKLaboklab(59.97% 0.1373 -0.0906)
OKLCHoklch(59.97% 0.165 326.6)
XYZxyz(29.6758, 19.4198, 44.8244)
Luminance0.1942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B157B3 #59B357
analogous
#8357B3 #B157B3 #B35787
triadic
#B157B3 #B3B157 #57B3B1
tetradic
#B157B3 #B38357 #59B357 #5787B3
square
#B157B3 #B38357 #59B357 #5787B3
split-complementary
#B157B3 #87B357 #57B383
monochromatic
#622D63 #8B408D #B157B3 #C581C6 #D8ABD9

Accessibility & contrast

On white

4.30
#B157B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#B157B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B157B3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B157B3#FFFFFF#000000##000000
##B157B31.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D73B6
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#B5617D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b157b3;
/* rgb */ color: rgb(177, 87, 179);
/* oklch */ color: oklch(60.0% 0.165 326.6);
Tailwind
colors: {
  custom: {
    50: '#ca8aca',
    500: '#b157b3',
    950: '#000000',
  },
}
SCSS
$custom: #b157b3;
$custom-light: #ca8aca;
$custom-dark: #000000;
JSON
{
  "hex": "#b157b3",
  "rgb": {
    "r": 177,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 298.696,
    "s": 37.705,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59973,
    "c": 0.1645,
    "h": 326.6
  },
  "luminance": 0.19418
}

Semantic roles & 50–950 ramp

primary
#B157B3
secondary
#A0C79F
accent
#CE5A5D
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#140C13
muted
#827D82

Preview Lab

Preview with #B157B3

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

Preview Lab → · Contrast checker → · Palette generator →

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