#AB46AC#AB46AC

#AB46AC is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.6% C 0.181 H 327.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB46AC
RGBrgb(171, 70, 172)
HSLhsl(299, 42%, 47%)
HSVhsv(299, 59%, 67%)
CMYKcmyk(0.6%, 59.3%, 0%, 32.5%)
CIE-LABlab(47.00, 54.81, -35.48)
CIE-LCHlch(47.00, 65.29, 327.09°)
OKLaboklab(56.63% 0.1522 -0.0979)
OKLCHoklch(56.63% 0.181 327.3)
XYZxyz(26.4307, 16.0184, 40.7215)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46AC #47AC46
analogous
#7846AC #AB46AC #AC467A
triadic
#AB46AC #ACAB46 #46ACAB
tetradic
#AB46AC #AC7846 #47AC46 #467AAC
square
#AB46AC #AC7846 #47AC46 #467AAC
split-complementary
#AB46AC #7AAC46 #46AC78
monochromatic
#552355 #803481 #AB46AC #C26CC3 #D498D5

Accessibility & contrast

On white

5.00
#AB46AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AB46AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB46AC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46AC#FFFFFF#000000##FFFFFF
##AB46AC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AF
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#B05372
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab46ac;
/* rgb */ color: rgb(171, 70, 172);
/* oklch */ color: oklch(56.6% 0.181 327.3);
Tailwind
colors: {
  custom: {
    50: '#c780c5',
    500: '#ab46ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab46ac;
$custom-light: #c780c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46ac",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 299.412,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56626,
    "c": 0.18094,
    "h": 327.3
  },
  "luminance": 0.16017
}

Semantic roles & 50–950 ramp

primary
#AB46AC
secondary
#8DC18D
accent
#D25657
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB46AC

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

Preview Lab → · Contrast checker → · Palette generator →

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