#AB308A#AB308A

#AB308A is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.6% C 0.184 H 340.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB308A
RGBrgb(171, 48, 138)
HSLhsl(316, 56%, 43%)
HSVhsv(316, 72%, 67%)
CMYKcmyk(0%, 71.9%, 19.3%, 32.9%)
CIE-LABlab(42.17, 58.30, -22.65)
CIE-LCHlch(42.17, 62.55, 338.77°)
OKLaboklab(52.58% 0.1741 -0.061)
OKLCHoklch(52.58% 0.184 340.7)
XYZxyz(22.4396, 12.6090, 25.2918)
Luminance0.1261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB308A #30AB51
analogous
#8F30AB #AB308A #AB304C
triadic
#AB308A #8AAB30 #308AAB
tetradic
#AB308A #AB8F30 #30AB51 #304CAB
square
#AB308A #AB8F30 #30AB51 #304CAB
split-complementary
#AB308A #4CAB30 #30AB8F
monochromatic
#4B153D #7B2363 #AB308A #CD4CAA #DA7BC1

Accessibility & contrast

On white

5.96
#AB308A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB308A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB308A
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB308A#FFFFFF#000000##FFFFFF
##AB308A1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#B53359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab308a;
/* rgb */ color: rgb(171, 48, 138);
/* oklch */ color: oklch(52.6% 0.184 340.7);
Tailwind
colors: {
  custom: {
    50: '#c873ac',
    500: '#ab308a',
    950: '#000000',
  },
}
SCSS
$custom: #ab308a;
$custom-light: #c873ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab308a",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 316.098,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.18448,
    "h": 340.7
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#AB308A
secondary
#74C389
accent
#DF7148
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB308A

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

Preview Lab → · Contrast checker → · Palette generator →

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