#AB2CAF#AB2CAF

#AB2CAF is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.216 H 326.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AB2CAF
RGBrgb(171, 44, 175)
HSLhsl(298, 60%, 43%)
HSVhsv(298, 75%, 69%)
CMYKcmyk(2.3%, 74.9%, 0%, 31.4%)
CIE-LABlab(43.59, 65.35, -42.65)
CIE-LCHlch(43.59, 78.03, 326.87°)
OKLaboklab(54.22% 0.1804 -0.1185)
OKLCHoklch(54.22% 0.216 326.7)
XYZxyz(25.4327, 13.5562, 41.8262)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CAF #30AF2C
analogous
#692CAF #AB2CAF #AF2C71
triadic
#AB2CAF #AFAB2C #2CAFAB
tetradic
#AB2CAF #AF692C #30AF2C #2C71AF
square
#AB2CAF #AF692C #30AF2C #2C71AF
split-complementary
#AB2CAF #71AF2C #2CAF69
monochromatic
#4B134D #7B207E #AB2CAF #CD47D1 #DA78DD

Accessibility & contrast

On white

5.66
#AB2CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AB2CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CAF
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CAF#FFFFFF#000000##FFFFFF
##AB2CAF1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025DB3
Deuteranopia (green-blind)
#4D6CAC
Tritanopia (blue-blind)
#B0426C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2caf;
/* rgb */ color: rgb(171, 44, 175);
/* oklch */ color: oklch(54.2% 0.216 326.7);
Tailwind
colors: {
  custom: {
    50: '#c873c7',
    500: '#ab2caf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2caf;
$custom-light: #c873c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2caf",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 298.168,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54219,
    "c": 0.21583,
    "h": 326.7
  },
  "luminance": 0.13554
}

Semantic roles & 50–950 ramp

primary
#AB2CAF
secondary
#74C572
accent
#E3454A
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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