#AB18A0#AB18A0

#AB18A0 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.1% C 0.221 H 331.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AB18A0
RGBrgb(171, 24, 160)
HSLhsl(304, 75%, 38%)
HSVhsv(304, 86%, 67%)
CMYKcmyk(0%, 86%, 6.4%, 32.9%)
CIE-LABlab(40.98, 68.07, -37.85)
CIE-LCHlch(40.98, 77.89, 330.93°)
OKLaboklab(52.09% 0.1953 -0.1044)
OKLCHoklch(52.09% 0.221 331.9)
XYZxyz(23.4665, 11.8513, 34.3025)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB18A0 #18AB23
analogous
#6C18AB #AB18A0 #AB1856
triadic
#AB18A0 #A0AB18 #18A0AB
tetradic
#AB18A0 #AB6C18 #18AB23 #1856AB
square
#AB18A0 #AB6C18 #18AB23 #1856AB
split-complementary
#AB18A0 #56AB18 #18AB6C
monochromatic
#40093C #75106E #AB18A0 #E020D1 #E756DC

Accessibility & contrast

On white

6.23
#AB18A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB18A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB18A0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB18A0#FFFFFF#000000##FFFFFF
##AB18A01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A3
Deuteranopia (green-blind)
#4F679D
Tritanopia (blue-blind)
#B22F5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab18a0;
/* rgb */ color: rgb(171, 24, 160);
/* oklch */ color: oklch(52.1% 0.221 331.9);
Tailwind
colors: {
  custom: {
    50: '#c86cbc',
    500: '#ab18a0',
    950: '#000000',
  },
}
SCSS
$custom: #ab18a0;
$custom-light: #c86cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab18a0",
  "rgb": {
    "r": 171,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 304.49,
    "s": 75.385,
    "l": 38.235
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.22147,
    "h": 331.9
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#AB18A0
secondary
#55CA5D
accent
#F24436
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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