#AB337F#AB337F

#AB337F is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.4% C 0.174 H 345.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AB337F
RGBrgb(171, 51, 127)
HSLhsl(322, 54%, 44%)
HSVhsv(322, 70%, 67%)
CMYKcmyk(0%, 70.2%, 25.7%, 32.9%)
CIE-LABlab(42.09, 55.71, -16.03)
CIE-LCHlch(42.09, 57.97, 343.94°)
OKLaboklab(52.38% 0.1686 -0.0425)
OKLCHoklch(52.38% 0.174 345.9)
XYZxyz(21.8101, 12.5602, 21.3503)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB337F #33AB5F
analogous
#9B33AB #AB337F #AB3343
triadic
#AB337F #7FAB33 #337FAB
tetradic
#AB337F #AB9B33 #33AB5F #3343AB
square
#AB337F #AB9B33 #33AB5F #3343AB
split-complementary
#AB337F #43AB33 #33AB9B
monochromatic
#4D1739 #7C255C #AB337F #CB509E #D97FB8

Accessibility & contrast

On white

5.98
#AB337F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AB337F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB337F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB337F#FFFFFF#000000##FFFFFF
##AB337F1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415681
Deuteranopia (green-blind)
#656B7C
Tritanopia (blue-blind)
#B73154
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab337f;
/* rgb */ color: rgb(171, 51, 127);
/* oklch */ color: oklch(52.4% 0.174 345.9);
Tailwind
colors: {
  custom: {
    50: '#c874a4',
    500: '#ab337f',
    950: '#000000',
  },
}
SCSS
$custom: #ab337f;
$custom-light: #c874a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab337f",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 322,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52376,
    "c": 0.17388,
    "h": 345.9
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#AB337F
secondary
#78C293
accent
#DD804A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB337F

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

Preview Lab → · Contrast checker → · Palette generator →

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