#AB398A#AB398A

#AB398A is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.5% C 0.173 H 341.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AB398A
RGBrgb(171, 57, 138)
HSLhsl(317, 50%, 45%)
HSVhsv(317, 67%, 67%)
CMYKcmyk(0%, 66.7%, 19.3%, 32.9%)
CIE-LABlab(43.39, 54.88, -20.76)
CIE-LCHlch(43.39, 58.68, 339.28°)
OKLaboklab(53.47% 0.1637 -0.0558)
OKLCHoklch(53.47% 0.173 341.2)
XYZxyz(22.8458, 13.4213, 25.4272)
Luminance0.1342 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB398A #39AB5A
analogous
#9339AB #AB398A #AB3951
triadic
#AB398A #8AAB39 #398AAB
tetradic
#AB398A #AB9339 #39AB5A #3951AB
square
#AB398A #AB9339 #39AB5A #3951AB
split-complementary
#AB398A #51AB39 #39AB93
monochromatic
#4F1A40 #7D2A65 #AB398A #C859A8 #D787C0

Accessibility & contrast

On white

5.70
#AB398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB398A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB398A
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB398A#FFFFFF#000000##FFFFFF
##AB398A1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#646D87
Tritanopia (blue-blind)
#B53B5C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab398a;
/* rgb */ color: rgb(171, 57, 138);
/* oklch */ color: oklch(53.5% 0.173 341.2);
Tailwind
colors: {
  custom: {
    50: '#c778ac',
    500: '#ab398a',
    950: '#000000',
  },
}
SCSS
$custom: #ab398a;
$custom-light: #c778ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab398a",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 317.368,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53475,
    "c": 0.17297,
    "h": 341.2
  },
  "luminance": 0.13419
}

Semantic roles & 50–950 ramp

primary
#AB398A
secondary
#7FC192
accent
#DA774E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #AB398A

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

Preview Lab → · Contrast checker → · Palette generator →

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