#AB3188#AB3188

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

Color values

HEX#AB3188
RGBrgb(171, 49, 136)
HSLhsl(317, 55%, 43%)
HSVhsv(317, 71%, 67%)
CMYKcmyk(0%, 71.3%, 20.5%, 32.9%)
CIE-LABlab(42.21, 57.66, -21.37)
CIE-LCHlch(42.21, 61.50, 339.66°)
OKLaboklab(52.58% 0.1727 -0.0574)
OKLCHoklch(52.58% 0.182 341.6)
XYZxyz(22.3375, 12.6343, 24.5500)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3188 #31AB54
analogous
#9131AB #AB3188 #AB314B
triadic
#AB3188 #88AB31 #3188AB
tetradic
#AB3188 #AB9131 #31AB54 #314BAB
square
#AB3188 #AB9131 #31AB54 #314BAB
split-complementary
#AB3188 #4BAB31 #31AB91
monochromatic
#4C163C #7B2362 #AB3188 #CC4DA8 #DA7DBF

Accessibility & contrast

On white

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

On black

3.53
#AB3188 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB3188#FFFFFF#000000##FFFFFF
##AB31881.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B578A
Deuteranopia (green-blind)
#616B85
Tritanopia (blue-blind)
#B63358
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab3188;
/* rgb */ color: rgb(171, 49, 136);
/* oklch */ color: oklch(52.6% 0.182 341.6);
Tailwind
colors: {
  custom: {
    50: '#c874ab',
    500: '#ab3188',
    950: '#000000',
  },
}
SCSS
$custom: #ab3188;
$custom-light: #c874ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3188",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 317.213,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.18196,
    "h": 341.6
  },
  "luminance": 0.12632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB3188

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

Preview Lab → · Contrast checker → · Palette generator →

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