#AB1C9C#AB1C9C

#AB1C9C is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.216 H 333.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AB1C9C
RGBrgb(171, 28, 156)
HSLhsl(306, 72%, 39%)
HSVhsv(306, 84%, 67%)
CMYKcmyk(0%, 83.6%, 8.8%, 32.9%)
CIE-LABlab(41.04, 66.66, -35.34)
CIE-LCHlch(41.04, 75.44, 332.07°)
OKLaboklab(52.06% 0.1929 -0.0972)
OKLCHoklch(52.06% 0.216 333.3)
XYZxyz(23.2108, 11.8908, 32.5188)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1C9C #1CAB2B
analogous
#731CAB #AB1C9C #AB1C55
triadic
#AB1C9C #9CAB1C #1C9CAB
tetradic
#AB1C9C #AB731C #1CAB2B #1C55AB
square
#AB1C9C #AB731C #1CAB2B #1C55AB
split-complementary
#AB1C9C #55AB1C #1CAB73
monochromatic
#420B3C #76136C #AB1C9C #DC28C9 #E45DD6

Accessibility & contrast

On white

6.22
#AB1C9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB1C9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1C9C
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1C9C#FFFFFF#000000##FFFFFF
##AB1C9C1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12549F
Deuteranopia (green-blind)
#526899
Tritanopia (blue-blind)
#B32F5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab1c9c;
/* rgb */ color: rgb(171, 28, 156);
/* oklch */ color: oklch(52.1% 0.216 333.3);
Tailwind
colors: {
  custom: {
    50: '#c86db9',
    500: '#ab1c9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab1c9c;
$custom-light: #c86db9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1c9c",
  "rgb": {
    "r": 171,
    "g": 28,
    "b": 156
  },
  "hsl": {
    "h": 306.294,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.52061,
    "c": 0.216,
    "h": 333.3
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#AB1C9C
secondary
#5AC966
accent
#EF4C39
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB1C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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