#AB009C#AB009C

#AB009C is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 51.1% C 0.229 H 333.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AB009C
RGBrgb(171, 0, 156)
HSLhsl(305, 100%, 34%)
HSVhsv(305, 100%, 67%)
CMYKcmyk(0%, 100%, 8.8%, 32.9%)
CIE-LABlab(39.68, 70.64, -37.49)
CIE-LCHlch(39.68, 79.98, 332.04°)
OKLaboklab(51.1% 0.2046 -0.1033)
OKLCHoklch(51.1% 0.229 333.2)
XYZxyz(22.7956, 11.0604, 32.3804)
Luminance0.1106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB009C #00AB0F
analogous
#6400AB #AB009C #AB0046
triadic
#AB009C #9CAB00 #009CAB
tetradic
#AB009C #AB6400 #00AB0F #0046AB
square
#AB009C #AB6400 #00AB0F #0046AB
split-complementary
#AB009C #46AB00 #00AB64
monochromatic
#31002C #6E0064 #AB009C #E800D4 #FF26EC

Accessibility & contrast

On white

6.54
#AB009C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#AB009C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB009C
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB009C#FFFFFF#000000##FFFFFF
##AB009C1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#4D6599
Tritanopia (blue-blind)
#B3235A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #ab009c;
/* rgb */ color: rgb(171, 0, 156);
/* oklch */ color: oklch(51.1% 0.229 333.2);
Tailwind
colors: {
  custom: {
    50: '#c968ba',
    500: '#ab009c',
    950: '#000000',
  },
}
SCSS
$custom: #ab009c;
$custom-light: #c968ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab009c",
  "rgb": {
    "r": 171,
    "g": 0,
    "b": 156
  },
  "hsl": {
    "h": 305.263,
    "s": 100,
    "l": 33.529
  },
  "oklch": {
    "l": 0.51097,
    "c": 0.22922,
    "h": 333.2
  },
  "luminance": 0.11058
}

Semantic roles & 50–950 ramp

primary
#AB009C
secondary
#2DDA3C
accent
#FF3C29
background
#FCF6FB
surface
#F9ECF6
border
#D2C7D0
text
#140711
muted
#827A80

Preview Lab

Preview with #AB009C

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

Preview Lab → · Contrast checker → · Palette generator →

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