#AB337E#AB337E

#AB337E is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.3% C 0.173 H 346.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AB337E
RGBrgb(171, 51, 126)
HSLhsl(323, 54%, 44%)
HSVhsv(323, 70%, 67%)
CMYKcmyk(0%, 70.2%, 26.3%, 32.9%)
CIE-LABlab(42.05, 55.58, -15.48)
CIE-LCHlch(42.05, 57.69, 344.44°)
OKLaboklab(52.33% 0.1684 -0.041)
OKLCHoklch(52.33% 0.173 346.3)
XYZxyz(21.7452, 12.5342, 21.0088)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB337E #33AB60
analogous
#9C33AB #AB337E #AB3342
triadic
#AB337E #7EAB33 #337EAB
tetradic
#AB337E #AB9C33 #33AB60 #3342AB
square
#AB337E #AB9C33 #33AB60 #3342AB
split-complementary
#AB337E #42AB33 #33AB9C
monochromatic
#4D1739 #7C255B #AB337E #CB509D #D97FB7

Accessibility & contrast

On white

5.99
#AB337E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB337E
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB337E#FFFFFF#000000##FFFFFF
##AB337E1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425680
Deuteranopia (green-blind)
#656B7B
Tritanopia (blue-blind)
#B73054
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab337e;
/* rgb */ color: rgb(171, 51, 126);
/* oklch */ color: oklch(52.3% 0.173 346.3);
Tailwind
colors: {
  custom: {
    50: '#c874a3',
    500: '#ab337e',
    950: '#000000',
  },
}
SCSS
$custom: #ab337e;
$custom-light: #c874a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab337e",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 322.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.17329,
    "h": 346.3
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#AB337E
secondary
#78C294
accent
#DD824A
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB337E

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

Preview Lab → · Contrast checker → · Palette generator →

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