#AB338B#AB338B

#AB338B is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.181 H 340.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB338B
RGBrgb(171, 51, 139)
HSLhsl(316, 54%, 44%)
HSVhsv(316, 70%, 67%)
CMYKcmyk(0%, 70.2%, 18.7%, 32.9%)
CIE-LABlab(42.60, 57.35, -22.59)
CIE-LCHlch(42.60, 61.64, 338.50°)
OKLaboklab(52.91% 0.171 -0.0609)
OKLCHoklch(52.91% 0.181 340.4)
XYZxyz(22.6392, 12.8918, 25.7172)
Luminance0.1289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB338B #33AB53
analogous
#8F33AB #AB338B #AB334F
triadic
#AB338B #8BAB33 #338BAB
tetradic
#AB338B #AB8F33 #33AB53 #334FAB
square
#AB338B #AB8F33 #33AB53 #334FAB
split-complementary
#AB338B #4FAB33 #33AB8F
monochromatic
#4D173E #7C2565 #AB338B #CB50AA #D97FC1

Accessibility & contrast

On white

5.87
#AB338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB338B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB338B#FFFFFF#000000##FFFFFF
##AB338B1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588E
Deuteranopia (green-blind)
#616C88
Tritanopia (blue-blind)
#B5365A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab338b;
/* rgb */ color: rgb(171, 51, 139);
/* oklch */ color: oklch(52.9% 0.181 340.4);
Tailwind
colors: {
  custom: {
    50: '#c875ad',
    500: '#ab338b',
    950: '#000000',
  },
}
SCSS
$custom: #ab338b;
$custom-light: #c875ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ab338b",
  "rgb": {
    "r": 171,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 316,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52912,
    "c": 0.18147,
    "h": 340.4
  },
  "luminance": 0.1289
}

Semantic roles & 50–950 ramp

primary
#AB338B
secondary
#78C28C
accent
#DD724A
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB338B

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

Preview Lab → · Contrast checker → · Palette generator →

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