#AB338D#AB338D

#AB338D is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.183 H 339.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB338D
RGBrgb(171, 51, 141)
HSLhsl(315, 54%, 44%)
HSVhsv(315, 70%, 67%)
CMYKcmyk(0%, 70.2%, 17.5%, 32.9%)
CIE-LABlab(42.69, 57.64, -23.67)
CIE-LCHlch(42.69, 62.31, 337.67°)
OKLaboklab(53.01% 0.1713 -0.0639)
OKLCHoklch(53.01% 0.183 339.5)
XYZxyz(22.7867, 12.9508, 26.4938)
Luminance0.1295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB338D #33AB51
analogous
#8D33AB #AB338D #AB3351
triadic
#AB338D #8DAB33 #338DAB
tetradic
#AB338D #AB8D33 #33AB51 #3351AB
square
#AB338D #AB8D33 #33AB51 #3351AB
split-complementary
#AB338D #51AB33 #33AB8D
monochromatic
#4D173F #7C2566 #AB338D #CB50AC #D97FC3

Accessibility & contrast

On white

5.85
#AB338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB338D
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB338D#FFFFFF#000000##FFFFFF
##AB338D1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5990
Deuteranopia (green-blind)
#606C8A
Tritanopia (blue-blind)
#B5375B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab338d;
/* rgb */ color: rgb(171, 51, 141);
/* oklch */ color: oklch(53.0% 0.183 339.5);
Tailwind
colors: {
  custom: {
    50: '#c875ae',
    500: '#ab338d',
    950: '#000000',
  },
}
SCSS
$custom: #ab338d;
$custom-light: #c875ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab338d",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 315,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53006,
    "c": 0.18283,
    "h": 339.5
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#AB338D
secondary
#78C28A
accent
#DD6F4A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB338D

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

Preview Lab → · Contrast checker → · Palette generator →

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