#AB4EA2#AB4EA2

#AB4EA2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.1% C 0.160 H 331.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB4EA2
RGBrgb(171, 78, 162)
HSLhsl(306, 37%, 49%)
HSVhsv(306, 54%, 67%)
CMYKcmyk(0%, 54.4%, 5.3%, 32.9%)
CIE-LABlab(47.90, 49.31, -28.16)
CIE-LCHlch(47.90, 56.78, 330.27°)
OKLaboklab(57.13% 0.1403 -0.0769)
OKLCHoklch(57.13% 0.16 331.3)
XYZxyz(26.0404, 16.7170, 36.0306)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EA2 #4EAB57
analogous
#864EAB #AB4EA2 #AB4E74
triadic
#AB4EA2 #A2AB4E #4EA2AB
tetradic
#AB4EA2 #AB864E #4EAB57 #4E74AB
square
#AB4EA2 #AB864E #4EAB57 #4E74AB
split-complementary
#AB4EA2 #74AB4E #4EAB86
monochromatic
#572852 #813B7A #AB4EA2 #C076B9 #D4A0CF

Accessibility & contrast

On white

4.84
#AB4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EA2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EA2#FFFFFF#000000##FFFFFF
##AB4EA21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#66769F
Tritanopia (blue-blind)
#B15671
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4ea2;
/* rgb */ color: rgb(171, 78, 162);
/* oklch */ color: oklch(57.1% 0.160 331.3);
Tailwind
colors: {
  custom: {
    50: '#c684be',
    500: '#ab4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ea2;
$custom-light: #c684be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ea2",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 305.806,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57132,
    "c": 0.15997,
    "h": 331.3
  },
  "luminance": 0.16715
}

Semantic roles & 50–950 ramp

primary
#AB4EA2
secondary
#94C199
accent
#CD665A
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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