#AB2786#AB2786

#AB2786 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.6% C 0.192 H 342.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AB2786
RGBrgb(171, 39, 134)
HSLhsl(317, 63%, 41%)
HSVhsv(317, 77%, 67%)
CMYKcmyk(0%, 77.2%, 21.6%, 32.9%)
CIE-LABlab(40.95, 60.71, -22.09)
CIE-LCHlch(40.95, 64.60, 340.00°)
OKLaboklab(51.64% 0.1825 -0.0594)
OKLCHoklch(51.64% 0.192 342)
XYZxyz(21.8239, 11.8325, 23.6842)
Luminance0.1183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2786 #27AB4C
analogous
#8E27AB #AB2786 #AB2744
triadic
#AB2786 #86AB27 #2786AB
tetradic
#AB2786 #AB8E27 #27AB4C #2744AB
square
#AB2786 #AB8E27 #27AB4C #2744AB
split-complementary
#AB2786 #44AB27 #27AB8E
monochromatic
#471038 #791C5F #AB2786 #D33DA9 #DE6EBF

Accessibility & contrast

On white

6.24
#AB2786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB2786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2786
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2786#FFFFFF#000000##FFFFFF
##AB27861.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#5E6883
Tritanopia (blue-blind)
#B62954
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2786;
/* rgb */ color: rgb(171, 39, 134);
/* oklch */ color: oklch(51.6% 0.192 342.0);
Tailwind
colors: {
  custom: {
    50: '#c870a9',
    500: '#ab2786',
    950: '#000000',
  },
}
SCSS
$custom: #ab2786;
$custom-light: #c870a9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2786",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 316.818,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51641,
    "c": 0.19188,
    "h": 342
  },
  "luminance": 0.1183
}

Semantic roles & 50–950 ramp

primary
#AB2786
secondary
#69C583
accent
#E67042
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2786

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

Preview Lab → · Contrast checker → · Palette generator →

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