#AB2EDB#AB2EDB

#AB2EDB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.3% C 0.250 H 314.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB2EDB
RGBrgb(171, 46, 219)
HSLhsl(283, 71%, 52%)
HSVhsv(283, 79%, 86%)
CMYKcmyk(21.9%, 79%, 0%, 14.1%)
CIE-LABlab(46.61, 72.63, -63.36)
CIE-LCHlch(46.61, 96.38, 318.90°)
OKLaboklab(57.25% 0.1737 -0.1791)
OKLCHoklch(57.25% 0.25 314.1)
XYZxyz(30.5556, 15.7275, 68.4302)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EDB #5EDB2E
analogous
#552EDB #AB2EDB #DB2EB4
triadic
#AB2EDB #DBAB2E #2EDBAB
tetradic
#AB2EDB #DB552E #5EDB2E #2EB4DB
square
#AB2EDB #DB552E #5EDB2E #2EB4DB
split-complementary
#AB2EDB #B4DB2E #2EDB55
monochromatic
#5E157A #861EAE #AB2EDB #C062E4 #D596ED

Accessibility & contrast

On white

5.07
#AB2EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AB2EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EDB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EDB#FFFFFF#000000##FFFFFF
##AB2EDB1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#1C71D7
Tritanopia (blue-blind)
#A65885
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab2edb;
/* rgb */ color: rgb(171, 46, 219);
/* oklch */ color: oklch(57.3% 0.250 314.1);
Tailwind
colors: {
  custom: {
    50: '#c976e7',
    500: '#ab2edb',
    950: '#000000',
  },
}
SCSS
$custom: #ab2edb;
$custom-light: #c976e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2edb",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 219
  },
  "hsl": {
    "h": 283.353,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57254,
    "c": 0.24954,
    "h": 314.1
  },
  "luminance": 0.15726
}

Semantic roles & 50–950 ramp

primary
#AB2EDB
secondary
#A2D88D
accent
#ED3A6C
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB2EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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