#AB2DD4#AB2DD4

#AB2DD4 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.7% C 0.245 H 315.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AB2DD4
RGBrgb(171, 45, 212)
HSLhsl(285, 66%, 50%)
HSVhsv(285, 79%, 83%)
CMYKcmyk(19.3%, 78.8%, 0%, 16.9%)
CIE-LABlab(46.03, 71.61, -60.30)
CIE-LCHlch(46.03, 93.61, 319.90°)
OKLaboklab(56.69% 0.1758 -0.1701)
OKLCHoklch(56.69% 0.245 315.9)
XYZxyz(29.6148, 15.2894, 63.6658)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DD4 #56D42D
analogous
#572DD4 #AB2DD4 #D42DAA
triadic
#AB2DD4 #D4AB2D #2DD4AB
tetradic
#AB2DD4 #D4572D #56D42D #2DAAD4
square
#AB2DD4 #D4572D #56D42D #2DAAD4
split-complementary
#AB2DD4 #AAD42D #2DD457
monochromatic
#5A1770 #8321A3 #AB2DD4 #BF60DE #D493E9

Accessibility & contrast

On white

5.18
#AB2DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AB2DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DD4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DD4#FFFFFF#000000##FFFFFF
##AB2DD41.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#2970D1
Tritanopia (blue-blind)
#A85481
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab2dd4;
/* rgb */ color: rgb(171, 45, 212);
/* oklch */ color: oklch(56.7% 0.245 315.9);
Tailwind
colors: {
  custom: {
    50: '#c975e2',
    500: '#ab2dd4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2dd4;
$custom-light: #c975e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2dd4",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 212
  },
  "hsl": {
    "h": 285.269,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.24461,
    "h": 315.9
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#AB2DD4
secondary
#9BD489
accent
#E93F69
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140915
muted
#827B84

Preview Lab

Preview with #AB2DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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