#AB318F#AB318F

#AB318F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.187 H 338.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB318F
RGBrgb(171, 49, 143)
HSLhsl(314, 55%, 43%)
HSVhsv(314, 71%, 67%)
CMYKcmyk(0%, 71.3%, 16.4%, 32.9%)
CIE-LABlab(42.52, 58.66, -25.15)
CIE-LCHlch(42.52, 63.82, 336.79°)
OKLaboklab(52.91% 0.1738 -0.0681)
OKLCHoklch(52.91% 0.187 338.6)
XYZxyz(22.8513, 12.8399, 27.2561)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB318F #31AB4D
analogous
#8A31AB #AB318F #AB3152
triadic
#AB318F #8FAB31 #318FAB
tetradic
#AB318F #AB8A31 #31AB4D #3152AB
square
#AB318F #AB8A31 #31AB4D #3152AB
split-complementary
#AB318F #52AB31 #31AB8A
monochromatic
#4C163F #7B2367 #AB318F #CC4DAF #DA7DC4

Accessibility & contrast

On white

5.89
#AB318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB318F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB318F#FFFFFF#000000##FFFFFF
##AB318F1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375892
Deuteranopia (green-blind)
#5F6B8C
Tritanopia (blue-blind)
#B5365C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab318f;
/* rgb */ color: rgb(171, 49, 143);
/* oklch */ color: oklch(52.9% 0.187 338.6);
Tailwind
colors: {
  custom: {
    50: '#c874b0',
    500: '#ab318f',
    950: '#000000',
  },
}
SCSS
$custom: #ab318f;
$custom-light: #c874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab318f",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 313.77,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52914,
    "c": 0.18664,
    "h": 338.6
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#AB318F
secondary
#75C287
accent
#DF6B49
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB318F

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

Preview Lab → · Contrast checker → · Palette generator →

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