#AB335B#AB335B

#AB335B is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.1% C 0.158 H 4.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB335B
RGBrgb(171, 51, 91)
HSLhsl(340, 54%, 44%)
HSVhsv(340, 70%, 67%)
CMYKcmyk(0%, 70.2%, 46.8%, 32.9%)
CIE-LABlab(40.87, 51.61, 4.56)
CIE-LCHlch(40.87, 51.81, 5.04°)
OKLaboklab(51.08% 0.1577 0.0122)
OKLCHoklch(51.08% 0.158 4.4)
XYZxyz(19.8683, 11.7835, 11.1237)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB335B #33AB83
analogous
#AB3397 #AB335B #AB4733
triadic
#AB335B #5BAB33 #335BAB
tetradic
#AB335B #97AB33 #33AB83 #4733AB
square
#AB335B #97AB33 #33AB83 #4733AB
split-complementary
#AB335B #33AB47 #3397AB
monochromatic
#4D1729 #7C2542 #AB335B #CB5079 #D97F9D

Accessibility & contrast

On white

6.26
#AB335B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB335B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB335B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB335B#FFFFFF#000000##FFFFFF
##AB335B1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E515C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BA2043
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab335b;
/* rgb */ color: rgb(171, 51, 91);
/* oklch */ color: oklch(51.1% 0.158 4.4);
Tailwind
colors: {
  custom: {
    50: '#c97389',
    500: '#ab335b',
    950: '#000000',
  },
}
SCSS
$custom: #ab335b;
$custom-light: #c97389;
$custom-dark: #000000;
JSON
{
  "hex": "#ab335b",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 340,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51076,
    "c": 0.15819,
    "h": 4.4
  },
  "luminance": 0.11781
}

Semantic roles & 50–950 ramp

primary
#AB335B
secondary
#78C2A9
accent
#DDAC4A
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AB335B

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

Preview Lab → · Contrast checker → · Palette generator →

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