#AB2998#AB2998

#AB2998 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.202 H 334.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AB2998
RGBrgb(171, 41, 152)
HSLhsl(309, 61%, 42%)
HSVhsv(309, 76%, 67%)
CMYKcmyk(0%, 76%, 11.1%, 32.9%)
CIE-LABlab(42.02, 62.64, -31.38)
CIE-LCHlch(42.02, 70.06, 333.39°)
OKLaboklab(52.69% 0.1827 -0.0858)
OKLCHoklch(52.69% 0.202 334.8)
XYZxyz(23.2553, 12.5129, 30.8901)
Luminance0.1251 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2998 #29AB3C
analogous
#7D29AB #AB2998 #AB2957
triadic
#AB2998 #98AB29 #2998AB
tetradic
#AB2998 #AB7D29 #29AB3C #2957AB
square
#AB2998 #AB7D29 #29AB3C #2957AB
split-complementary
#AB2998 #57AB29 #29AB7D
monochromatic
#481140 #7A1D6C #AB2998 #D140BC #DD71CD

Accessibility & contrast

On white

6.00
#AB2998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2998
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2998#FFFFFF#000000##FFFFFF
##AB29981.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#B3355E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2998;
/* rgb */ color: rgb(171, 41, 152);
/* oklch */ color: oklch(52.7% 0.202 334.8);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2998',
    950: '#000000',
  },
}
SCSS
$custom: #ab2998;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2998",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 308.769,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.20182,
    "h": 334.8
  },
  "luminance": 0.12511
}

Semantic roles & 50–950 ramp

primary
#AB2998
secondary
#6CC479
accent
#E45B43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2998

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

Preview Lab → · Contrast checker → · Palette generator →

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