#AB4BAA#AB4BAA

#AB4BAA is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.1% C 0.172 H 327.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB4BAA
RGBrgb(171, 75, 170)
HSLhsl(301, 39%, 48%)
HSVhsv(301, 56%, 67%)
CMYKcmyk(0%, 56.1%, 0.6%, 32.9%)
CIE-LABlab(47.74, 52.15, -33.13)
CIE-LCHlch(47.74, 61.79, 327.58°)
OKLaboklab(57.14% 0.1455 -0.0911)
OKLCHoklch(57.14% 0.172 327.9)
XYZxyz(26.5660, 16.5940, 39.8261)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BAA #4BAB4C
analogous
#7C4BAB #AB4BAA #AB4B7A
triadic
#AB4BAA #AAAB4B #4BAAAB
tetradic
#AB4BAA #AB7C4B #4BAB4C #4B7AAB
square
#AB4BAA #AB7C4B #4BAB4C #4B7AAB
split-complementary
#AB4BAA #7AAB4B #4BAB7C
monochromatic
#562655 #803880 #AB4BAA #C172C0 #D49DD3

Accessibility & contrast

On white

4.86
#AB4BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AB4BAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BAA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BAA#FFFFFF#000000##FFFFFF
##AB4BAA1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#6176A7
Tritanopia (blue-blind)
#B05673
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4baa;
/* rgb */ color: rgb(171, 75, 170);
/* oklch */ color: oklch(57.1% 0.172 327.9);
Tailwind
colors: {
  custom: {
    50: '#c682c3',
    500: '#ab4baa',
    950: '#000000',
  },
}
SCSS
$custom: #ab4baa;
$custom-light: #c682c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4baa",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 170
  },
  "hsl": {
    "h": 300.625,
    "s": 39.024,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57139,
    "c": 0.17168,
    "h": 327.9
  },
  "luminance": 0.16592
}

Semantic roles & 50–950 ramp

primary
#AB4BAA
secondary
#91C092
accent
#CF5A59
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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