#AB2ED3#AB2ED3

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

Color values

HEX#AB2ED3
RGBrgb(171, 46, 211)
HSLhsl(285, 65%, 50%)
HSVhsv(285, 78%, 83%)
CMYKcmyk(19%, 78.2%, 0%, 17.3%)
CIE-LABlab(46.06, 71.12, -59.66)
CIE-LCHlch(46.06, 92.83, 320.00°)
OKLaboklab(56.69% 0.1752 -0.1683)
OKLCHoklch(56.69% 0.243 316.1)
XYZxyz(29.5276, 15.3163, 63.0163)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2ED3 #56D32E
analogous
#592ED3 #AB2ED3 #D32EA8
triadic
#AB2ED3 #D3AB2E #2ED3AB
tetradic
#AB2ED3 #D3592E #56D32E #2EA8D3
square
#AB2ED3 #D3592E #56D32E #2EA8D3
split-complementary
#AB2ED3 #A8D32E #2ED359
monochromatic
#5A176F #8322A2 #AB2ED3 #BF61DE #D493E8

Accessibility & contrast

On white

5.17
#AB2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2ED3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2ED3#FFFFFF#000000##FFFFFF
##AB2ED31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2ed3;
/* rgb */ color: rgb(171, 46, 211);
/* oklch */ color: oklch(56.7% 0.243 316.1);
Tailwind
colors: {
  custom: {
    50: '#c976e1',
    500: '#ab2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ed3;
$custom-light: #c976e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ed3",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 285.455,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56693,
    "c": 0.24289,
    "h": 316.1
  },
  "luminance": 0.15315
}

Semantic roles & 50–950 ramp

primary
#AB2ED3
secondary
#9BD38A
accent
#E84068
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140915
muted
#827B83

Preview Lab

Preview with #AB2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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