#AB298E#AB298E

#AB298E is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.2% C 0.195 H 338.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AB298E
RGBrgb(171, 41, 142)
HSLhsl(313, 61%, 42%)
HSVhsv(313, 76%, 67%)
CMYKcmyk(0%, 76%, 17%, 32.9%)
CIE-LABlab(41.53, 61.19, -26.08)
CIE-LCHlch(41.53, 66.52, 336.91°)
OKLaboklab(52.18% 0.1817 -0.0707)
OKLCHoklch(52.18% 0.195 338.7)
XYZxyz(22.4706, 12.1990, 26.7572)
Luminance0.1220 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298E #29AB46
analogous
#8729AB #AB298E #AB294D
triadic
#AB298E #8EAB29 #298EAB
tetradic
#AB298E #AB8729 #29AB46 #294DAB
square
#AB298E #AB8729 #29AB46 #294DAB
split-complementary
#AB298E #4DAB29 #29AB87
monochromatic
#48113C #7A1D65 #AB298E #D140B1 #DD71C5

Accessibility & contrast

On white

6.11
#AB298E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB298E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB298E
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298E#FFFFFF#000000##FFFFFF
##AB298E1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#5C698B
Tritanopia (blue-blind)
#B52F59
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab298e;
/* rgb */ color: rgb(171, 41, 142);
/* oklch */ color: oklch(52.2% 0.195 338.7);
Tailwind
colors: {
  custom: {
    50: '#c871af',
    500: '#ab298e',
    950: '#000000',
  },
}
SCSS
$custom: #ab298e;
$custom-light: #c871af;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298e",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 313.385,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52182,
    "c": 0.19497,
    "h": 338.7
  },
  "luminance": 0.12197
}

Semantic roles & 50–950 ramp

primary
#AB298E
secondary
#6CC47F
accent
#E46743
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB298E

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

Preview Lab → · Contrast checker → · Palette generator →

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