#AB317E#AB317E

#AB317E is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.176 H 346.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB317E
RGBrgb(171, 49, 126)
HSLhsl(322, 55%, 43%)
HSVhsv(322, 71%, 67%)
CMYKcmyk(0%, 71.3%, 26.3%, 32.9%)
CIE-LABlab(41.79, 56.32, -15.88)
CIE-LCHlch(41.79, 58.52, 344.25°)
OKLaboklab(52.14% 0.1707 -0.0421)
OKLCHoklch(52.14% 0.176 346.2)
XYZxyz(21.6597, 12.3632, 20.9803)
Luminance0.1236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB317E #31AB5E
analogous
#9B31AB #AB317E #AB3141
triadic
#AB317E #7EAB31 #317EAB
tetradic
#AB317E #AB9B31 #31AB5E #3141AB
square
#AB317E #AB9B31 #31AB5E #3141AB
split-complementary
#AB317E #41AB31 #31AB9B
monochromatic
#4C1638 #7B235B #AB317E #CC4D9D #DA7DB7

Accessibility & contrast

On white

6.05
#AB317E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB317E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB317E
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB317E#FFFFFF#000000##FFFFFF
##AB317E1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405580
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#B72E53
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab317e;
/* rgb */ color: rgb(171, 49, 126);
/* oklch */ color: oklch(52.1% 0.176 346.2);
Tailwind
colors: {
  custom: {
    50: '#c874a3',
    500: '#ab317e',
    950: '#000000',
  },
}
SCSS
$custom: #ab317e;
$custom-light: #c874a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab317e",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 322.131,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5214,
    "c": 0.17578,
    "h": 346.2
  },
  "luminance": 0.12361
}

Semantic roles & 50–950 ramp

primary
#AB317E
secondary
#75C292
accent
#DF8049
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB317E

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

Preview Lab → · Contrast checker → · Palette generator →

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