#AB4FD2#AB4FD2

#AB4FD2 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 59.9% C 0.204 H 314.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB4FD2
RGBrgb(171, 79, 210)
HSLhsl(282, 59%, 57%)
HSVhsv(282, 62%, 82%)
CMYKcmyk(18.6%, 62.4%, 0%, 17.6%)
CIE-LABlab(50.57, 58.03, -51.84)
CIE-LCHlch(50.57, 77.82, 318.22°)
OKLaboklab(59.89% 0.1425 -0.1456)
OKLCHoklch(59.89% 0.204 314.4)
XYZxyz(31.2215, 18.9040, 62.9645)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FD2 #76D24F
analogous
#6A4FD2 #AB4FD2 #D24FB8
triadic
#AB4FD2 #D2AB4F #4FD2AB
tetradic
#AB4FD2 #D26A4F #76D24F #4FB8D2
square
#AB4FD2 #D26A4F #76D24F #4FB8D2
split-complementary
#AB4FD2 #B8D24F #4FD26A
monochromatic
#672285 #8D2EB5 #AB4FD2 #C280DE #DAB0EB

Accessibility & contrast

On white

4.39
#AB4FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AB4FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FD2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FD2#FFFFFF#000000##000000
##AB4FD21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D73D6
Deuteranopia (green-blind)
#4B7BCF
Tritanopia (blue-blind)
#A86789
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab4fd2;
/* rgb */ color: rgb(171, 79, 210);
/* oklch */ color: oklch(59.9% 0.204 314.4);
Tailwind
colors: {
  custom: {
    50: '#c786e0',
    500: '#ab4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fd2;
$custom-light: #c786e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fd2",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 282.137,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59894,
    "c": 0.20368,
    "h": 314.4
  },
  "luminance": 0.18903
}

Semantic roles & 50–950 ramp

primary
#AB4FD2
secondary
#B4D9A4
accent
#E24574
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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