#AB398F#AB398F

#AB398F is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.7% C 0.176 H 338.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AB398F
RGBrgb(171, 57, 143)
HSLhsl(315, 50%, 45%)
HSVhsv(315, 67%, 67%)
CMYKcmyk(0%, 66.7%, 16.4%, 32.9%)
CIE-LABlab(43.61, 55.62, -23.46)
CIE-LCHlch(43.61, 60.36, 337.13°)
OKLaboklab(53.71% 0.1646 -0.0634)
OKLCHoklch(53.71% 0.176 338.9)
XYZxyz(23.2161, 13.5694, 27.3777)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB398F #39AB55
analogous
#8E39AB #AB398F #AB3956
triadic
#AB398F #8FAB39 #398FAB
tetradic
#AB398F #AB8E39 #39AB55 #3956AB
square
#AB398F #AB8E39 #39AB55 #3956AB
split-complementary
#AB398F #56AB39 #39AB8E
monochromatic
#4F1A42 #7D2A69 #AB398F #C859AD #D787C4

Accessibility & contrast

On white

5.66
#AB398F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AB398F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB398F
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB398F#FFFFFF#000000##FFFFFF
##AB398F1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C92
Deuteranopia (green-blind)
#626E8C
Tritanopia (blue-blind)
#B43D5F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab398f;
/* rgb */ color: rgb(171, 57, 143);
/* oklch */ color: oklch(53.7% 0.176 338.9);
Tailwind
colors: {
  custom: {
    50: '#c778b0',
    500: '#ab398f',
    950: '#000000',
  },
}
SCSS
$custom: #ab398f;
$custom-light: #c778b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab398f",
  "rgb": {
    "r": 171,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 314.737,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53705,
    "c": 0.17641,
    "h": 338.9
  },
  "luminance": 0.13567
}

Semantic roles & 50–950 ramp

primary
#AB398F
secondary
#7FC18F
accent
#DA704E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #AB398F

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

Preview Lab → · Contrast checker → · Palette generator →

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