#AB298D#AB298D

#AB298D is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.194 H 339.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AB298D
RGBrgb(171, 41, 141)
HSLhsl(314, 61%, 42%)
HSVhsv(314, 76%, 67%)
CMYKcmyk(0%, 76%, 17.5%, 32.9%)
CIE-LABlab(41.48, 61.05, -25.55)
CIE-LCHlch(41.48, 66.18, 337.29°)
OKLaboklab(52.13% 0.1816 -0.0692)
OKLCHoklch(52.13% 0.194 339.1)
XYZxyz(22.3958, 12.1691, 26.3635)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298D #29AB47
analogous
#8829AB #AB298D #AB294C
triadic
#AB298D #8DAB29 #298DAB
tetradic
#AB298D #AB8829 #29AB47 #294CAB
square
#AB298D #AB8829 #29AB47 #294CAB
split-complementary
#AB298D #4CAB29 #29AB88
monochromatic
#48113C #7A1D64 #AB298D #D140B0 #DD71C4

Accessibility & contrast

On white

6.12
#AB298D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB298D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB298D
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298D#FFFFFF#000000##FFFFFF
##AB298D1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#5C698A
Tritanopia (blue-blind)
#B52F58
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab298d;
/* rgb */ color: rgb(171, 41, 141);
/* oklch */ color: oklch(52.1% 0.194 339.1);
Tailwind
colors: {
  custom: {
    50: '#c871ae',
    500: '#ab298d',
    950: '#000000',
  },
}
SCSS
$custom: #ab298d;
$custom-light: #c871ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298d",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 313.846,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.1943,
    "h": 339.1
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#AB298D
secondary
#6CC480
accent
#E46943
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB298D

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

Preview Lab → · Contrast checker → · Palette generator →

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