#AB2BAD#AB2BAD

#AB2BAD is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.215 H 327.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB2BAD
RGBrgb(171, 43, 173)
HSLhsl(299, 60%, 42%)
HSVhsv(299, 75%, 68%)
CMYKcmyk(1.2%, 75.1%, 0%, 32.2%)
CIE-LABlab(43.37, 65.32, -41.82)
CIE-LCHlch(43.37, 77.56, 327.38°)
OKLaboklab(54.02% 0.1813 -0.116)
OKLCHoklch(54.02% 0.215 327.4)
XYZxyz(25.2009, 13.4046, 40.7871)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BAD #2DAD2B
analogous
#6A2BAD #AB2BAD #AD2B6E
triadic
#AB2BAD #ADAB2B #2BADAB
tetradic
#AB2BAD #AD6A2B #2DAD2B #2B6EAD
square
#AB2BAD #AD6A2B #2DAD2B #2B6EAD
split-complementary
#AB2BAD #6EAD2B #2BAD6A
monochromatic
#4A134B #7B1F7C #AB2BAD #CF45D1 #DB76DD

Accessibility & contrast

On white

5.71
#AB2BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB2BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BAD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BAD#FFFFFF#000000##FFFFFF
##AB2BAD1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065CB0
Deuteranopia (green-blind)
#4D6CAA
Tritanopia (blue-blind)
#B0416B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2bad;
/* rgb */ color: rgb(171, 43, 173);
/* oklch */ color: oklch(54.0% 0.215 327.4);
Tailwind
colors: {
  custom: {
    50: '#c873c6',
    500: '#ab2bad',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bad;
$custom-light: #c873c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bad",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 299.077,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54024,
    "c": 0.21529,
    "h": 327.4
  },
  "luminance": 0.13403
}

Semantic roles & 50–950 ramp

primary
#AB2BAD
secondary
#71C46F
accent
#E34447
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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