#B172B9#B172B9

#B172B9 is a light, vivid purple. Relative luminance 0.249; OKLCH L 64.4% C 0.124 H 322.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B172B9
RGBrgb(177, 114, 185)
HSLhsl(293, 34%, 59%)
HSVhsv(293, 38%, 73%)
CMYKcmyk(4.3%, 38.4%, 0%, 27.5%)
CIE-LABlab(56.96, 36.58, -27.42)
CIE-LCHlch(56.96, 45.72, 323.15°)
OKLaboklab(64.38% 0.099 -0.075)
OKLCHoklch(64.38% 0.124 322.8)
XYZxyz(32.9048, 24.8857, 48.9597)
Luminance0.2488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172B9 #7AB972
analogous
#8D72B9 #B172B9 #B9729D
triadic
#B172B9 #B9B172 #72B9B1
tetradic
#B172B9 #B98D72 #7AB972 #729DB9
square
#B172B9 #B98D72 #7AB972 #729DB9
split-complementary
#B172B9 #9DB972 #72B98D
monochromatic
#6F3B76 #964F9F #B172B9 #C89BCD #DEC4E2

Accessibility & contrast

On white

3.51
#B172B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#B172B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172B9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172B9#FFFFFF#000000##000000
##B172B91.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A84BC
Deuteranopia (green-blind)
#7A8BB7
Tritanopia (blue-blind)
#B37A8D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b172b9;
/* rgb */ color: rgb(177, 114, 185);
/* oklch */ color: oklch(64.4% 0.124 322.8);
Tailwind
colors: {
  custom: {
    50: '#c99cce',
    500: '#b172b9',
    950: '#000000',
  },
}
SCSS
$custom: #b172b9;
$custom-light: #c99cce;
$custom-dark: #000000;
JSON
{
  "hex": "#b172b9",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 185
  },
  "hsl": {
    "h": 293.239,
    "s": 33.649,
    "l": 58.627
  },
  "oklch": {
    "l": 0.64375,
    "c": 0.12417,
    "h": 322.8
  },
  "luminance": 0.24885
}

Semantic roles & 50–950 ramp

primary
#B172B9
secondary
#B9D1B5
accent
#CA5E6A
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E13
muted
#827E82

Preview Lab

Preview with #B172B9

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

Preview Lab → · Contrast checker → · Palette generator →

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