#AB4BAC#AB4BAC

#AB4BAC is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.2% C 0.173 H 327.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AB4BAC
RGBrgb(171, 75, 172)
HSLhsl(299, 39%, 48%)
HSVhsv(299, 56%, 67%)
CMYKcmyk(0.6%, 56.4%, 0%, 32.5%)
CIE-LABlab(47.84, 52.51, -34.15)
CIE-LCHlch(47.84, 62.64, 326.96°)
OKLaboklab(57.24% 0.1457 -0.0941)
OKLCHoklch(57.24% 0.173 327.2)
XYZxyz(26.7566, 16.6702, 40.8301)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BAC #4CAC4B
analogous
#7A4BAC #AB4BAC #AC4B7C
triadic
#AB4BAC #ACAB4B #4BACAB
tetradic
#AB4BAC #AC7A4B #4CAC4B #4B7CAC
square
#AB4BAC #AC7A4B #4CAC4B #4B7CAC
split-complementary
#AB4BAC #7CAC4B #4BAC7A
monochromatic
#562657 #813881 #AB4BAC #C172C2 #D49DD4

Accessibility & contrast

On white

4.85
#AB4BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AB4BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BAC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BAC#FFFFFF#000000##FFFFFF
##AB4BAC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406AAF
Deuteranopia (green-blind)
#6076A9
Tritanopia (blue-blind)
#B05774
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4bac;
/* rgb */ color: rgb(171, 75, 172);
/* oklch */ color: oklch(57.2% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#c782c5',
    500: '#ab4bac',
    950: '#000000',
  },
}
SCSS
$custom: #ab4bac;
$custom-light: #c782c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4bac",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 172
  },
  "hsl": {
    "h": 299.381,
    "s": 39.271,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57242,
    "c": 0.17346,
    "h": 327.2
  },
  "luminance": 0.16669
}

Semantic roles & 50–950 ramp

primary
#AB4BAC
secondary
#92C192
accent
#CF595A
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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