#AB4CA2#AB4CA2

#AB4CA2 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 56.9% C 0.163 H 331.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB4CA2
RGBrgb(171, 76, 162)
HSLhsl(306, 38%, 48%)
HSVhsv(306, 56%, 67%)
CMYKcmyk(0%, 55.6%, 5.3%, 32.9%)
CIE-LABlab(47.54, 50.27, -28.72)
CIE-LCHlch(47.54, 57.89, 330.26°)
OKLaboklab(56.87% 0.143 -0.0785)
OKLCHoklch(56.87% 0.163 331.2)
XYZxyz(25.9005, 16.4372, 35.9839)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CA2 #4CAB55
analogous
#844CAB #AB4CA2 #AB4C72
triadic
#AB4CA2 #A2AB4C #4CA2AB
tetradic
#AB4CA2 #AB844C #4CAB55 #4C72AB
square
#AB4CA2 #AB844C #4CAB55 #4C72AB
split-complementary
#AB4CA2 #72AB4C #4CAB84
monochromatic
#562652 #81397A #AB4CA2 #C173BA #D49ECF

Accessibility & contrast

On white

4.90
#AB4CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AB4CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CA2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CA2#FFFFFF#000000##FFFFFF
##AB4CA21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4868A5
Deuteranopia (green-blind)
#65769F
Tritanopia (blue-blind)
#B15470
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4ca2;
/* rgb */ color: rgb(171, 76, 162);
/* oklch */ color: oklch(56.9% 0.163 331.2);
Tailwind
colors: {
  custom: {
    50: '#c683be',
    500: '#ab4ca2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ca2;
$custom-light: #c683be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ca2",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 305.684,
    "s": 38.462,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56868,
    "c": 0.16315,
    "h": 331.2
  },
  "luminance": 0.16435
}

Semantic roles & 50–950 ramp

primary
#AB4CA2
secondary
#92C097
accent
#CE6459
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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