#AB318E#AB318E

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

Color values

HEX#AB318E
RGBrgb(171, 49, 142)
HSLhsl(314, 55%, 43%)
HSVhsv(314, 71%, 67%)
CMYKcmyk(0%, 71.3%, 17%, 32.9%)
CIE-LABlab(42.48, 58.51, -24.61)
CIE-LCHlch(42.48, 63.48, 337.19°)
OKLaboklab(52.86% 0.1736 -0.0666)
OKLCHoklch(52.86% 0.186 339)
XYZxyz(22.7759, 12.8097, 26.8589)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB318E #31AB4E
analogous
#8B31AB #AB318E #AB3151
triadic
#AB318E #8EAB31 #318EAB
tetradic
#AB318E #AB8B31 #31AB4E #3151AB
square
#AB318E #AB8B31 #31AB4E #3151AB
split-complementary
#AB318E #51AB31 #31AB8B
monochromatic
#4C163F #7B2366 #AB318E #CC4DAE #DA7DC4

Accessibility & contrast

On white

5.90
#AB318E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB318E
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB318E#FFFFFF#000000##FFFFFF
##AB318E1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#B5365B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab318e;
/* rgb */ color: rgb(171, 49, 142);
/* oklch */ color: oklch(52.9% 0.186 339.0);
Tailwind
colors: {
  custom: {
    50: '#c874af',
    500: '#ab318e',
    950: '#000000',
  },
}
SCSS
$custom: #ab318e;
$custom-light: #c874af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab318e",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 314.262,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52865,
    "c": 0.18595,
    "h": 339
  },
  "luminance": 0.12808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB318E

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

Preview Lab → · Contrast checker → · Palette generator →

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