#AB4ED2#AB4ED2

#AB4ED2 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 59.8% C 0.205 H 314.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB4ED2
RGBrgb(171, 78, 210)
HSLhsl(282, 59%, 56%)
HSVhsv(282, 63%, 82%)
CMYKcmyk(18.6%, 62.9%, 0%, 17.6%)
CIE-LABlab(50.41, 58.49, -52.11)
CIE-LCHlch(50.41, 78.34, 318.30°)
OKLaboklab(59.77% 0.1437 -0.1463)
OKLCHoklch(59.77% 0.205 314.5)
XYZxyz(31.1499, 18.7608, 62.9406)
Luminance0.1876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ED2 #75D24E
analogous
#694ED2 #AB4ED2 #D24EB7
triadic
#AB4ED2 #D2AB4E #4ED2AB
tetradic
#AB4ED2 #D2694E #75D24E #4EB7D2
square
#AB4ED2 #D2694E #75D24E #4EB7D2
split-complementary
#AB4ED2 #B7D24E #4ED269
monochromatic
#672284 #8D2EB5 #AB4ED2 #C27FDE #D9B0EB

Accessibility & contrast

On white

4.42
#AB4ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AB4ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ED2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ED2#FFFFFF#000000##000000
##AB4ED21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A73D6
Deuteranopia (green-blind)
#4A7ACF
Tritanopia (blue-blind)
#A86689
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab4ed2;
/* rgb */ color: rgb(171, 78, 210);
/* oklch */ color: oklch(59.8% 0.205 314.5);
Tailwind
colors: {
  custom: {
    50: '#c785e0',
    500: '#ab4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ed2;
$custom-light: #c785e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ed2",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 282.273,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59772,
    "c": 0.20506,
    "h": 314.5
  },
  "luminance": 0.1876
}

Semantic roles & 50–950 ramp

primary
#AB4ED2
secondary
#B3D9A3
accent
#E34574
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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