#AB2BB7#AB2BB7

#AB2BB7 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.223 H 324.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB2BB7
RGBrgb(171, 43, 183)
HSLhsl(295, 62%, 44%)
HSVhsv(295, 77%, 72%)
CMYKcmyk(6.6%, 76.5%, 0%, 28.2%)
CIE-LABlab(43.95, 67.00, -46.78)
CIE-LCHlch(43.95, 81.72, 325.08°)
OKLaboklab(54.63% 0.1809 -0.1305)
OKLCHoklch(54.63% 0.223 324.2)
XYZxyz(26.2050, 13.8062, 46.0752)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BB7 #37B72B
analogous
#652BB7 #AB2BB7 #B72B7D
triadic
#AB2BB7 #B7AB2B #2BB7AB
tetradic
#AB2BB7 #B7652B #37B72B #2B7DB7
square
#AB2BB7 #B7652B #37B72B #2B7DB7
split-complementary
#AB2BB7 #7DB72B #2BB765
monochromatic
#4E1454 #7D1F85 #AB2BB7 #C94BD5 #D87CE0

Accessibility & contrast

On white

5.58
#AB2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB2BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BB7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BB7#FFFFFF#000000##FFFFFF
##AB2BB71.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#476DB4
Tritanopia (blue-blind)
#AE4670
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2bb7;
/* rgb */ color: rgb(171, 43, 183);
/* oklch */ color: oklch(54.6% 0.223 324.2);
Tailwind
colors: {
  custom: {
    50: '#c873cd',
    500: '#ab2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bb7;
$custom-light: #c873cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bb7",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 294.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5463,
    "c": 0.22306,
    "h": 324.2
  },
  "luminance": 0.13805
}

Semantic roles & 50–950 ramp

primary
#AB2BB7
secondary
#7CC975
accent
#E54351
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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