#AB45AC#AB45AC

#AB45AC is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.5% C 0.182 H 327.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB45AC
RGBrgb(171, 69, 172)
HSLhsl(299, 43%, 47%)
HSVhsv(299, 60%, 67%)
CMYKcmyk(0.6%, 59.9%, 0%, 32.5%)
CIE-LABlab(46.84, 55.26, -35.73)
CIE-LCHlch(46.84, 65.81, 327.11°)
OKLaboklab(56.51% 0.1535 -0.0986)
OKLCHoklch(56.51% 0.182 327.3)
XYZxyz(26.3687, 15.8944, 40.7008)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45AC #46AC45
analogous
#7745AC #AB45AC #AC457A
triadic
#AB45AC #ACAB45 #45ACAB
tetradic
#AB45AC #AC7745 #46AC45 #457AAC
square
#AB45AC #AC7745 #46AC45 #457AAC
split-complementary
#AB45AC #7AAC45 #45AC77
monochromatic
#542255 #803380 #AB45AC #C36BC4 #D496D5

Accessibility & contrast

On white

5.03
#AB45AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AB45AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45AC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45AC#FFFFFF#000000##FFFFFF
##AB45AC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3867AF
Deuteranopia (green-blind)
#5C74A9
Tritanopia (blue-blind)
#B05272
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab45ac;
/* rgb */ color: rgb(171, 69, 172);
/* oklch */ color: oklch(56.5% 0.182 327.3);
Tailwind
colors: {
  custom: {
    50: '#c77fc5',
    500: '#ab45ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab45ac;
$custom-light: #c77fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45ac",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 299.417,
    "s": 42.739,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56507,
    "c": 0.1824,
    "h": 327.3
  },
  "luminance": 0.15893
}

Semantic roles & 50–950 ramp

primary
#AB45AC
secondary
#8CC18C
accent
#D35557
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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