#AB398D#AB398D

#AB398D is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.6% C 0.175 H 339.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AB398D
RGBrgb(171, 57, 141)
HSLhsl(316, 50%, 45%)
HSVhsv(316, 67%, 67%)
CMYKcmyk(0%, 66.7%, 17.5%, 32.9%)
CIE-LABlab(43.52, 55.32, -22.38)
CIE-LCHlch(43.52, 59.68, 337.97°)
OKLaboklab(53.61% 0.1643 -0.0603)
OKLCHoklch(53.61% 0.175 339.8)
XYZxyz(23.0660, 13.5094, 26.5869)
Luminance0.1351 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB398D #39AB57
analogous
#9039AB #AB398D #AB3954
triadic
#AB398D #8DAB39 #398DAB
tetradic
#AB398D #AB9039 #39AB57 #3954AB
square
#AB398D #AB9039 #39AB57 #3954AB
split-complementary
#AB398D #54AB39 #39AB90
monochromatic
#4F1A41 #7D2A67 #AB398D #C859AB #D787C2

Accessibility & contrast

On white

5.67
#AB398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB398D
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB398D#FFFFFF#000000##FFFFFF
##AB398D1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B8F
Deuteranopia (green-blind)
#636D8A
Tritanopia (blue-blind)
#B53C5E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab398d;
/* rgb */ color: rgb(171, 57, 141);
/* oklch */ color: oklch(53.6% 0.175 339.8);
Tailwind
colors: {
  custom: {
    50: '#c778ae',
    500: '#ab398d',
    950: '#000000',
  },
}
SCSS
$custom: #ab398d;
$custom-light: #c778ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab398d",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 315.789,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53612,
    "c": 0.17502,
    "h": 339.8
  },
  "luminance": 0.13507
}

Semantic roles & 50–950 ramp

primary
#AB398D
secondary
#7FC190
accent
#DA734E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #AB398D

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

Preview Lab → · Contrast checker → · Palette generator →

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