#B171AF#B171AF

#B171AF is a light, moderate purple. Relative luminance 0.243; OKLCH L 63.8% C 0.116 H 327.9°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B171AF
RGBrgb(177, 113, 175)
HSLhsl(302, 29%, 57%)
HSVhsv(302, 36%, 69%)
CMYKcmyk(0%, 36.2%, 1.1%, 30.6%)
CIE-LABlab(56.34, 35.20, -22.64)
CIE-LCHlch(56.34, 41.85, 327.25°)
OKLaboklab(63.77% 0.098 -0.0615)
OKLCHoklch(63.77% 0.116 327.9)
XYZxyz(31.7739, 24.2539, 43.5569)
Luminance0.2425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171AF #71B173
analogous
#9371B1 #B171AF #B1718F
triadic
#B171AF #AFB171 #71AFB1
tetradic
#B171AF #B19371 #71B173 #718FB1
square
#B171AF #B19371 #71B173 #718FB1
split-complementary
#B171AF #8FB171 #71B193
monochromatic
#6C3B6B #945192 #B171AF #C799C5 #DCC0DC

Accessibility & contrast

On white

3.59
#B171AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#B171AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171AF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171AF#FFFFFF#000000##000000
##B171AF1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D82B1
Deuteranopia (green-blind)
#7D8AAD
Tritanopia (blue-blind)
#B57688
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b171af;
/* rgb */ color: rgb(177, 113, 175);
/* oklch */ color: oklch(63.8% 0.116 327.9);
Tailwind
colors: {
  custom: {
    50: '#c99bc7',
    500: '#b171af',
    950: '#000000',
  },
}
SCSS
$custom: #b171af;
$custom-light: #c99bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b171af",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 301.875,
    "s": 29.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.63773,
    "c": 0.1157,
    "h": 327.9
  },
  "luminance": 0.24253
}

Semantic roles & 50–950 ramp

primary
#B171AF
secondary
#B2CCB3
accent
#C56662
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E13
muted
#827E82

Preview Lab

Preview with #B171AF

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

Preview Lab → · Contrast checker → · Palette generator →

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