#AB2789#AB2789

#AB2789 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.194 H 340.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AB2789
RGBrgb(171, 39, 137)
HSLhsl(315, 63%, 41%)
HSVhsv(315, 77%, 67%)
CMYKcmyk(0%, 77.2%, 19.9%, 32.9%)
CIE-LABlab(41.08, 61.11, -23.72)
CIE-LCHlch(41.08, 65.55, 338.78°)
OKLaboklab(51.78% 0.1829 -0.064)
OKLCHoklch(51.78% 0.194 340.7)
XYZxyz(22.0361, 11.9174, 24.8018)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2789 #27AB49
analogous
#8B27AB #AB2789 #AB2747
triadic
#AB2789 #89AB27 #2789AB
tetradic
#AB2789 #AB8B27 #27AB49 #2747AB
square
#AB2789 #AB8B27 #27AB49 #2747AB
split-complementary
#AB2789 #47AB27 #27AB8B
monochromatic
#471039 #791C61 #AB2789 #D33DAC #DE6EC1

Accessibility & contrast

On white

6.21
#AB2789 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB2789 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2789
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2789#FFFFFF#000000##FFFFFF
##AB27891.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538C
Deuteranopia (green-blind)
#5D6886
Tritanopia (blue-blind)
#B62B56
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2789;
/* rgb */ color: rgb(171, 39, 137);
/* oklch */ color: oklch(51.8% 0.194 340.7);
Tailwind
colors: {
  custom: {
    50: '#c870ab',
    500: '#ab2789',
    950: '#000000',
  },
}
SCSS
$custom: #ab2789;
$custom-light: #c870ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2789",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 315.455,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.19376,
    "h": 340.7
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#AB2789
secondary
#69C581
accent
#E66C42
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2789

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

Preview Lab → · Contrast checker → · Palette generator →

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