#AB318D#AB318D

#AB318D is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.8% C 0.185 H 339.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AB318D
RGBrgb(171, 49, 141)
HSLhsl(315, 55%, 43%)
HSVhsv(315, 71%, 67%)
CMYKcmyk(0%, 71.3%, 17.5%, 32.9%)
CIE-LABlab(42.43, 58.37, -24.07)
CIE-LCHlch(42.43, 63.14, 337.59°)
OKLaboklab(52.82% 0.1735 -0.065)
OKLCHoklch(52.82% 0.185 339.4)
XYZxyz(22.7012, 12.7798, 26.4653)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB318D #31AB4F
analogous
#8C31AB #AB318D #AB3150
triadic
#AB318D #8DAB31 #318DAB
tetradic
#AB318D #AB8C31 #31AB4F #3150AB
square
#AB318D #AB8C31 #31AB4F #3150AB
split-complementary
#AB318D #50AB31 #31AB8C
monochromatic
#4C163F #7B2366 #AB318D #CC4DAD #DA7DC3

Accessibility & contrast

On white

5.91
#AB318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB318D
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB318D#FFFFFF#000000##FFFFFF
##AB318D1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385890
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#B5355B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab318d;
/* rgb */ color: rgb(171, 49, 141);
/* oklch */ color: oklch(52.8% 0.185 339.4);
Tailwind
colors: {
  custom: {
    50: '#c874ae',
    500: '#ab318d',
    950: '#000000',
  },
}
SCSS
$custom: #ab318d;
$custom-light: #c874ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab318d",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 314.754,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.18528,
    "h": 339.4
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#AB318D
secondary
#75C288
accent
#DF6E49
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB318D

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

Preview Lab → · Contrast checker → · Palette generator →

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