#AB2DAF#AB2DAF

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

Color values

HEX#AB2DAF
RGBrgb(171, 45, 175)
HSLhsl(298, 59%, 43%)
HSVhsv(298, 74%, 69%)
CMYKcmyk(2.3%, 74.3%, 0%, 31.4%)
CIE-LABlab(43.70, 65.03, -42.47)
CIE-LCHlch(43.70, 77.67, 326.85°)
OKLaboklab(54.3% 0.1795 -0.118)
OKLCHoklch(54.3% 0.215 326.7)
XYZxyz(25.4704, 13.6316, 41.8388)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DAF #31AF2D
analogous
#6A2DAF #AB2DAF #AF2D72
triadic
#AB2DAF #AFAB2D #2DAFAB
tetradic
#AB2DAF #AF6A2D #31AF2D #2D72AF
square
#AB2DAF #AF6A2D #31AF2D #2D72AF
split-complementary
#AB2DAF #72AF2D #2DAF6A
monochromatic
#4C144E #7B207E #AB2DAF #CC49D0 #DA7ADD

Accessibility & contrast

On white

5.64
#AB2DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2DAF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DAF#FFFFFF#000000##FFFFFF
##AB2DAF1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065DB3
Deuteranopia (green-blind)
#4D6DAC
Tritanopia (blue-blind)
#B0436C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2daf;
/* rgb */ color: rgb(171, 45, 175);
/* oklch */ color: oklch(54.3% 0.215 326.7);
Tailwind
colors: {
  custom: {
    50: '#c874c7',
    500: '#ab2daf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2daf;
$custom-light: #c874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2daf",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 298.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.21482,
    "h": 326.7
  },
  "luminance": 0.1363
}

Semantic roles & 50–950 ramp

primary
#AB2DAF
secondary
#75C573
accent
#E2464A
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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