#AB2FD3#AB2FD3

#AB2FD3 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.8% C 0.242 H 316.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB2FD3
RGBrgb(171, 47, 211)
HSLhsl(285, 65%, 51%)
HSVhsv(285, 78%, 83%)
CMYKcmyk(19%, 77.7%, 0%, 17.3%)
CIE-LABlab(46.17, 70.81, -59.49)
CIE-LCHlch(46.17, 92.48, 319.96°)
OKLaboklab(56.77% 0.1744 -0.1678)
OKLCHoklch(56.77% 0.242 316.1)
XYZxyz(29.5671, 15.3953, 63.0295)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FD3 #57D32F
analogous
#592FD3 #AB2FD3 #D32FA9
triadic
#AB2FD3 #D3AB2F #2FD3AB
tetradic
#AB2FD3 #D3592F #57D32F #2FA9D3
square
#AB2FD3 #D3592F #57D32F #2FA9D3
split-complementary
#AB2FD3 #A9D32F #2FD359
monochromatic
#5A1870 #8322A2 #AB2FD3 #BF62DE #D494E8

Accessibility & contrast

On white

5.15
#AB2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB2FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FD3
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FD3#FFFFFF#000000##FFFFFF
##AB2FD31.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#2C71D0
Tritanopia (blue-blind)
#A85581
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab2fd3;
/* rgb */ color: rgb(171, 47, 211);
/* oklch */ color: oklch(56.8% 0.242 316.1);
Tailwind
colors: {
  custom: {
    50: '#c976e1',
    500: '#ab2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fd3;
$custom-light: #c976e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fd3",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 285.366,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56768,
    "c": 0.24198,
    "h": 316.1
  },
  "luminance": 0.15394
}

Semantic roles & 50–950 ramp

primary
#AB2FD3
secondary
#9CD38A
accent
#E84069
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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