#AB4BA2#AB4BA2

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

Color values

HEX#AB4BA2
RGBrgb(171, 75, 162)
HSLhsl(306, 39%, 48%)
HSVhsv(306, 56%, 67%)
CMYKcmyk(0%, 56.1%, 5.3%, 32.9%)
CIE-LABlab(47.37, 50.74, -28.99)
CIE-LCHlch(47.37, 58.44, 330.26°)
OKLaboklab(56.74% 0.1444 -0.0793)
OKLCHoklch(56.74% 0.165 331.2)
XYZxyz(25.8321, 16.3004, 35.9611)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BA2 #4BAB54
analogous
#844BAB #AB4BA2 #AB4B72
triadic
#AB4BA2 #A2AB4B #4BA2AB
tetradic
#AB4BA2 #AB844B #4BAB54 #4B72AB
square
#AB4BA2 #AB844B #4BAB54 #4B72AB
split-complementary
#AB4BA2 #72AB4B #4BAB84
monochromatic
#562651 #80387A #AB4BA2 #C172BA #D49DCF

Accessibility & contrast

On white

4.93
#AB4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AB4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BA2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BA2#FFFFFF#000000##FFFFFF
##AB4BA21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4668A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#B1536F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab4ba2;
/* rgb */ color: rgb(171, 75, 162);
/* oklch */ color: oklch(56.7% 0.165 331.2);
Tailwind
colors: {
  custom: {
    50: '#c682be',
    500: '#ab4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ba2;
$custom-light: #c682be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ba2",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 305.625,
    "s": 39.024,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56738,
    "c": 0.16472,
    "h": 331.2
  },
  "luminance": 0.16299
}

Semantic roles & 50–950 ramp

primary
#AB4BA2
secondary
#91C096
accent
#CF6459
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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