#AB2DE2#AB2DE2

#AB2DE2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.7% C 0.256 H 312.5°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB2DE2
RGBrgb(171, 45, 226)
HSLhsl(282, 76%, 53%)
HSVhsv(282, 80%, 89%)
CMYKcmyk(24.3%, 80.1%, 0%, 11.4%)
CIE-LABlab(47.01, 74.27, -66.71)
CIE-LCHlch(47.01, 99.83, 318.07°)
OKLaboklab(57.69% 0.173 -0.189)
OKLCHoklch(57.69% 0.256 312.5)
XYZxyz(31.4579, 16.0266, 73.3731)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DE2 #64E22D
analogous
#502DE2 #AB2DE2 #E22DBE
triadic
#AB2DE2 #E2AB2D #2DE2AB
tetradic
#AB2DE2 #E2502D #64E22D #2DBEE2
square
#AB2DE2 #E2502D #64E22D #2DBEE2
split-complementary
#AB2DE2 #BEE22D #2DE250
monochromatic
#601283 #8819B8 #AB2DE2 #C163E9 #D699F1

Accessibility & contrast

On white

4.99
#AB2DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AB2DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DE2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DE2#FFFFFF#000000##FFFFFF
##AB2DE21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#A45B89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab2de2;
/* rgb */ color: rgb(171, 45, 226);
/* oklch */ color: oklch(57.7% 0.256 312.5);
Tailwind
colors: {
  custom: {
    50: '#ca76ec',
    500: '#ab2de2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2de2;
$custom-light: #ca76ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2de2",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 281.768,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.25622,
    "h": 312.5
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#AB2DE2
secondary
#A6DC8E
accent
#F2356F
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AB2DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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