#AB2FAC#AB2FAC

#AB2FAC is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.210 H 327.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AB2FAC
RGBrgb(171, 47, 172)
HSLhsl(300, 57%, 43%)
HSVhsv(300, 73%, 67%)
CMYKcmyk(0.6%, 72.7%, 0%, 32.5%)
CIE-LABlab(43.76, 63.88, -40.60)
CIE-LCHlch(43.76, 75.69, 327.56°)
OKLaboklab(54.29% 0.1777 -0.1125)
OKLCHoklch(54.29% 0.21 327.7)
XYZxyz(25.2571, 13.6713, 40.3303)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FAC #30AC2F
analogous
#6C2FAC #AB2FAC #AC2F6E
triadic
#AB2FAC #ACAB2F #2FACAB
tetradic
#AB2FAC #AC6C2F #30AC2F #2F6EAC
square
#AB2FAC #AC6C2F #30AC2F #2F6EAC
split-complementary
#AB2FAC #6EAC2F #2FAC6C
monochromatic
#4B154C #7B227C #AB2FAC #CD4BCE #DA7BDB

Accessibility & contrast

On white

5.62
#AB2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AB2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FAC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FAC#FFFFFF#000000##FFFFFF
##AB2FAC1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAF
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#B0436B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2fac;
/* rgb */ color: rgb(171, 47, 172);
/* oklch */ color: oklch(54.3% 0.210 327.7);
Tailwind
colors: {
  custom: {
    50: '#c874c5',
    500: '#ab2fac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fac;
$custom-light: #c874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fac",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 299.52,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54285,
    "c": 0.21038,
    "h": 327.7
  },
  "luminance": 0.1367
}

Semantic roles & 50–950 ramp

primary
#AB2FAC
secondary
#74C374
accent
#E04749
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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