#AB4DA7#AB4DA7

#AB4DA7 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.2% C 0.166 H 329.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB4DA7
RGBrgb(171, 77, 167)
HSLhsl(303, 38%, 49%)
HSVhsv(303, 55%, 67%)
CMYKcmyk(0%, 55%, 2.3%, 32.9%)
CIE-LABlab(47.95, 50.67, -31.03)
CIE-LCHlch(47.95, 59.42, 328.51°)
OKLaboklab(57.25% 0.1424 -0.0851)
OKLCHoklch(57.25% 0.166 329.1)
XYZxyz(26.4232, 16.7573, 38.3945)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DA7 #4DAB51
analogous
#804DAB #AB4DA7 #AB4D78
triadic
#AB4DA7 #A7AB4D #4DA7AB
tetradic
#AB4DA7 #AB804D #4DAB51 #4D78AB
square
#AB4DA7 #AB804D #4DAB51 #4D78AB
split-complementary
#AB4DA7 #78AB4D #4DAB80
monochromatic
#572755 #813A7E #AB4DA7 #C175BD #D49FD1

Accessibility & contrast

On white

4.83
#AB4DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AB4DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4DA7
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DA7#FFFFFF#000000##FFFFFF
##AB4DA71.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#6376A4
Tritanopia (blue-blind)
#B05773
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4da7;
/* rgb */ color: rgb(171, 77, 167);
/* oklch */ color: oklch(57.2% 0.166 329.1);
Tailwind
colors: {
  custom: {
    50: '#c683c1',
    500: '#ab4da7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4da7;
$custom-light: #c683c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4da7",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 302.553,
    "s": 37.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.16591,
    "h": 329.1
  },
  "luminance": 0.16756
}

Semantic roles & 50–950 ramp

primary
#AB4DA7
secondary
#93C095
accent
#CE5F5A
background
#FCF8FB
surface
#F8EFF7
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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