#AB336B#AB336B

#AB336B is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.6% C 0.164 H 355.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB336B
RGBrgb(171, 51, 107)
HSLhsl(332, 54%, 44%)
HSVhsv(332, 70%, 67%)
CMYKcmyk(0%, 70.2%, 37.4%, 32.9%)
CIE-LABlab(41.36, 53.27, -4.75)
CIE-LCHlch(41.36, 53.48, 354.90°)
OKLaboklab(51.6% 0.1632 -0.0118)
OKLCHoklch(51.6% 0.164 355.9)
XYZxyz(20.6336, 12.0896, 15.1540)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB336B #33AB73
analogous
#AB33A7 #AB336B #AB3733
triadic
#AB336B #6BAB33 #336BAB
tetradic
#AB336B #A7AB33 #33AB73 #3733AB
square
#AB336B #A7AB33 #33AB73 #3733AB
split-complementary
#AB336B #33AB37 #33A7AB
monochromatic
#4D1730 #7C254E #AB336B #CB508A #D97FA9

Accessibility & contrast

On white

6.15
#AB336B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AB336B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB336B
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB336B#FFFFFF#000000##FFFFFF
##AB336B1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49536D
Deuteranopia (green-blind)
#6A6A68
Tritanopia (blue-blind)
#B9274B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab336b;
/* rgb */ color: rgb(171, 51, 107);
/* oklch */ color: oklch(51.6% 0.164 355.9);
Tailwind
colors: {
  custom: {
    50: '#c87495',
    500: '#ab336b',
    950: '#000000',
  },
}
SCSS
$custom: #ab336b;
$custom-light: #c87495;
$custom-dark: #000000;
JSON
{
  "hex": "#ab336b",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 332,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51596,
    "c": 0.16363,
    "h": 355.9
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#AB336B
secondary
#78C29F
accent
#DD994A
background
#FCF7F9
surface
#F9EDF1
border
#D2C8CB
text
#14090D
muted
#827B7E

Preview Lab

Preview with #AB336B

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

Preview Lab → · Contrast checker → · Palette generator →

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