#AB2C98#AB2C98

#AB2C98 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.9% C 0.199 H 334.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB2C98
RGBrgb(171, 44, 152)
HSLhsl(309, 59%, 42%)
HSVhsv(309, 74%, 67%)
CMYKcmyk(0%, 74.3%, 11.1%, 32.9%)
CIE-LABlab(42.35, 61.69, -30.86)
CIE-LCHlch(42.35, 68.98, 333.42°)
OKLaboklab(52.93% 0.1799 -0.0844)
OKLCHoklch(52.93% 0.199 334.9)
XYZxyz(23.3630, 12.7284, 30.9260)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C98 #2CAB3F
analogous
#7E2CAB #AB2C98 #AB2C59
triadic
#AB2C98 #98AB2C #2C98AB
tetradic
#AB2C98 #AB7E2C #2CAB3F #2C59AB
square
#AB2C98 #AB7E2C #2CAB3F #2C59AB
split-complementary
#AB2C98 #59AB2C #2CAB7E
monochromatic
#4A1341 #7A1F6D #AB2C98 #CF45BA #DC76CC

Accessibility & contrast

On white

5.92
#AB2C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB2C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C98
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C98#FFFFFF#000000##FFFFFF
##AB2C981.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#596B95
Tritanopia (blue-blind)
#B3375F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2c98;
/* rgb */ color: rgb(171, 44, 152);
/* oklch */ color: oklch(52.9% 0.199 334.9);
Tailwind
colors: {
  custom: {
    50: '#c872b6',
    500: '#ab2c98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c98;
$custom-light: #c872b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c98",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 308.976,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52931,
    "c": 0.19867,
    "h": 334.9
  },
  "luminance": 0.12726
}

Semantic roles & 50–950 ramp

primary
#AB2C98
secondary
#6FC37C
accent
#E25D46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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