#AB2D98#AB2D98

#AB2D98 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.198 H 334.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AB2D98
RGBrgb(171, 45, 152)
HSLhsl(309, 58%, 42%)
HSVhsv(309, 74%, 67%)
CMYKcmyk(0%, 73.7%, 11.1%, 32.9%)
CIE-LABlab(42.47, 61.37, -30.68)
CIE-LCHlch(42.47, 68.61, 333.44°)
OKLaboklab(53.01% 0.1789 -0.0839)
OKLCHoklch(53.01% 0.198 334.9)
XYZxyz(23.4007, 12.8038, 30.9386)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D98 #2DAB40
analogous
#7F2DAB #AB2D98 #AB2D59
triadic
#AB2D98 #98AB2D #2D98AB
tetradic
#AB2D98 #AB7F2D #2DAB40 #2D59AB
square
#AB2D98 #AB7F2D #2DAB40 #2D59AB
split-complementary
#AB2D98 #59AB2D #2DAB7F
monochromatic
#4A1442 #7B206D #AB2D98 #CE47BA #DB77CC

Accessibility & contrast

On white

5.90
#AB2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D98
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D98#FFFFFF#000000##FFFFFF
##AB2D981.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2d98;
/* rgb */ color: rgb(171, 45, 152);
/* oklch */ color: oklch(53.0% 0.198 334.9);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ab2d98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d98;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d98",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 309.048,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53014,
    "c": 0.19757,
    "h": 334.9
  },
  "luminance": 0.12802
}

Semantic roles & 50–950 ramp

primary
#AB2D98
secondary
#71C37D
accent
#E25E46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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