#AB3187#AB3187

#AB3187 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.5% C 0.181 H 342.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB3187
RGBrgb(171, 49, 135)
HSLhsl(318, 55%, 43%)
HSVhsv(318, 71%, 67%)
CMYKcmyk(0%, 71.3%, 21.1%, 32.9%)
CIE-LABlab(42.16, 57.53, -20.83)
CIE-LCHlch(42.16, 61.18, 340.10°)
OKLaboklab(52.54% 0.1725 -0.0559)
OKLCHoklch(52.54% 0.181 342)
XYZxyz(22.2668, 12.6060, 24.1775)
Luminance0.1260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3187 #31AB55
analogous
#9231AB #AB3187 #AB314A
triadic
#AB3187 #87AB31 #3187AB
tetradic
#AB3187 #AB9231 #31AB55 #314AAB
square
#AB3187 #AB9231 #31AB55 #314AAB
split-complementary
#AB3187 #4AAB31 #31AB92
monochromatic
#4C163C #7B2361 #AB3187 #CC4DA7 #DA7DBE

Accessibility & contrast

On white

5.96
#AB3187 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB3187 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3187
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3187#FFFFFF#000000##FFFFFF
##AB31871.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5789
Deuteranopia (green-blind)
#616B84
Tritanopia (blue-blind)
#B63258
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab3187;
/* rgb */ color: rgb(171, 49, 135);
/* oklch */ color: oklch(52.5% 0.181 342.0);
Tailwind
colors: {
  custom: {
    50: '#c874aa',
    500: '#ab3187',
    950: '#000000',
  },
}
SCSS
$custom: #ab3187;
$custom-light: #c874aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3187",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 317.705,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52537,
    "c": 0.18132,
    "h": 342
  },
  "luminance": 0.12604
}

Semantic roles & 50–950 ramp

primary
#AB3187
secondary
#75C28C
accent
#DF7549
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB3187

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

Preview Lab → · Contrast checker → · Palette generator →

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