#AB337B#AB337B

#AB337B is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.2% C 0.172 H 347.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AB337B
RGBrgb(171, 51, 123)
HSLhsl(324, 54%, 44%)
HSVhsv(324, 70%, 67%)
CMYKcmyk(0%, 70.2%, 28.1%, 32.9%)
CIE-LABlab(41.94, 55.19, -13.81)
CIE-LCHlch(41.94, 56.89, 345.95°)
OKLaboklab(52.21% 0.1677 -0.0363)
OKLCHoklch(52.21% 0.172 347.8)
XYZxyz(21.5545, 12.4580, 20.0045)
Luminance0.1246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB337B #33AB63
analogous
#9F33AB #AB337B #AB333F
triadic
#AB337B #7BAB33 #337BAB
tetradic
#AB337B #AB9F33 #33AB63 #333FAB
square
#AB337B #AB9F33 #33AB63 #333FAB
split-complementary
#AB337B #3FAB33 #33AB9F
monochromatic
#4D1737 #7C2559 #AB337B #CB509A #D97FB5

Accessibility & contrast

On white

6.02
#AB337B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB337B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB337B
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB337B#FFFFFF#000000##FFFFFF
##AB337B1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567D
Deuteranopia (green-blind)
#666B78
Tritanopia (blue-blind)
#B72F52
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab337b;
/* rgb */ color: rgb(171, 51, 123);
/* oklch */ color: oklch(52.2% 0.172 347.8);
Tailwind
colors: {
  custom: {
    50: '#c874a1',
    500: '#ab337b',
    950: '#000000',
  },
}
SCSS
$custom: #ab337b;
$custom-light: #c874a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab337b",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 324,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.17157,
    "h": 347.8
  },
  "luminance": 0.12456
}

Semantic roles & 50–950 ramp

primary
#AB337B
secondary
#78C295
accent
#DD854A
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB337B

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

Preview Lab → · Contrast checker → · Palette generator →

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