#AB71B2#AB71B2

#AB71B2 is a light, moderate purple. Relative luminance 0.237; OKLCH L 63.2% C 0.115 H 323.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AB71B2
RGBrgb(171, 113, 178)
HSLhsl(294, 30%, 57%)
HSVhsv(294, 37%, 70%)
CMYKcmyk(3.9%, 36.5%, 0%, 30.2%)
CIE-LABlab(55.77, 33.84, -25.30)
CIE-LCHlch(55.77, 42.25, 323.21°)
OKLaboklab(63.23% 0.0917 -0.0691)
OKLCHoklch(63.23% 0.115 323)
XYZxyz(30.7347, 23.6836, 45.0632)
Luminance0.2368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71B2 #78B271
analogous
#8B71B2 #AB71B2 #B27199
triadic
#AB71B2 #B2AB71 #71B2AB
tetradic
#AB71B2 #B28B71 #78B271 #7199B2
square
#AB71B2 #B28B71 #78B271 #7199B2
split-complementary
#AB71B2 #99B271 #71B28B
monochromatic
#683B6D #8E5195 #AB71B2 #C299C8 #DAC0DD

Accessibility & contrast

On white

3.66
#AB71B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#AB71B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71B2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71B2#FFFFFF#000000##000000
##AB71B21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B4
Deuteranopia (green-blind)
#7988B0
Tritanopia (blue-blind)
#AD7889
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ab71b2;
/* rgb */ color: rgb(171, 113, 178);
/* oklch */ color: oklch(63.2% 0.115 323.0);
Tailwind
colors: {
  custom: {
    50: '#c59bc9',
    500: '#ab71b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab71b2;
$custom-light: #c59bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71b2",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 293.538,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63228,
    "c": 0.11478,
    "h": 323
  },
  "luminance": 0.23683
}

Semantic roles & 50–950 ramp

primary
#AB71B2
secondary
#B5CDB2
accent
#C6626D
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E13
muted
#827E82

Preview Lab

Preview with #AB71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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