#B172BD#B172BD

#B172BD is a light, vivid purple. Relative luminance 0.251; OKLCH L 64.6% C 0.128 H 321.0°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B172BD
RGBrgb(177, 114, 189)
HSLhsl(290, 36%, 59%)
HSVhsv(290, 40%, 74%)
CMYKcmyk(6.3%, 39.7%, 0%, 25.9%)
CIE-LABlab(57.13, 37.38, -29.45)
CIE-LCHlch(57.13, 47.59, 321.77°)
OKLaboklab(64.55% 0.0998 -0.0808)
OKLCHoklch(64.55% 0.128 321)
XYZxyz(33.3330, 25.0570, 51.2149)
Luminance0.2506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172BD #7EBD72
analogous
#8C72BD #B172BD #BD72A4
triadic
#B172BD #BDB172 #72BDB1
tetradic
#B172BD #BD8C72 #7EBD72 #72A4BD
square
#B172BD #BD8C72 #7EBD72 #72A4BD
split-complementary
#B172BD #A4BD72 #72BD8C
monochromatic
#713A7B #974DA5 #B172BD #C89CD1 #DFC5E4

Accessibility & contrast

On white

3.49
#B172BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#B172BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172BD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172BD#FFFFFF#000000##000000
##B172BD1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6885C0
Deuteranopia (green-blind)
#798CBB
Tritanopia (blue-blind)
#B37B8F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b172bd;
/* rgb */ color: rgb(177, 114, 189);
/* oklch */ color: oklch(64.6% 0.128 321.0);
Tailwind
colors: {
  custom: {
    50: '#c99cd1',
    500: '#b172bd',
    950: '#000000',
  },
}
SCSS
$custom: #b172bd;
$custom-light: #c99cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b172bd",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 290.4,
    "s": 36.232,
    "l": 59.412
  },
  "oklch": {
    "l": 0.64555,
    "c": 0.12843,
    "h": 321
  },
  "luminance": 0.25056
}

Semantic roles & 50–950 ramp

primary
#B172BD
secondary
#BBD4B7
accent
#CC5C6E
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B172BD

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

Preview Lab → · Contrast checker → · Palette generator →

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