#AB2BAC#AB2BAC

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

Color values

HEX#AB2BAC
RGBrgb(171, 43, 172)
HSLhsl(300, 60%, 42%)
HSVhsv(300, 75%, 67%)
CMYKcmyk(0.6%, 75%, 0%, 32.5%)
CIE-LABlab(43.31, 65.16, -41.31)
CIE-LCHlch(43.31, 77.15, 327.62°)
OKLaboklab(53.97% 0.1814 -0.1146)
OKLCHoklch(53.97% 0.215 327.7)
XYZxyz(25.1045, 13.3661, 40.2794)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BAC #2CAC2B
analogous
#6B2BAC #AB2BAC #AC2B6D
triadic
#AB2BAC #ACAB2B #2BACAB
tetradic
#AB2BAC #AC6B2B #2CAC2B #2B6DAC
square
#AB2BAC #AC6B2B #2CAC2B #2B6DAC
split-complementary
#AB2BAC #6DAC2B #2BAC6B
monochromatic
#4A134A #7A1F7B #AB2BAC #CF44D0 #DC75DC

Accessibility & contrast

On white

5.72
#AB2BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BAC
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BAC#FFFFFF#000000##FFFFFF
##AB2BAC1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5CAF
Deuteranopia (green-blind)
#4E6CA9
Tritanopia (blue-blind)
#B0406A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2bac;
/* rgb */ color: rgb(171, 43, 172);
/* oklch */ color: oklch(54.0% 0.215 327.7);
Tailwind
colors: {
  custom: {
    50: '#c873c5',
    500: '#ab2bac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2bac;
$custom-light: #c873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2bac",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 299.535,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53965,
    "c": 0.21453,
    "h": 327.7
  },
  "luminance": 0.13364
}

Semantic roles & 50–950 ramp

primary
#AB2BAC
secondary
#6FC46F
accent
#E34546
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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