#AB298F#AB298F

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

Color values

HEX#AB298F
RGBrgb(171, 41, 143)
HSLhsl(313, 61%, 42%)
HSVhsv(313, 76%, 67%)
CMYKcmyk(0%, 76%, 16.4%, 32.9%)
CIE-LABlab(41.58, 61.33, -26.62)
CIE-LCHlch(41.58, 66.86, 336.54°)
OKLaboklab(52.23% 0.1818 -0.0722)
OKLCHoklch(52.23% 0.196 338.3)
XYZxyz(22.5460, 12.2291, 27.1543)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298F #29AB45
analogous
#8629AB #AB298F #AB294E
triadic
#AB298F #8FAB29 #298FAB
tetradic
#AB298F #AB8629 #29AB45 #294EAB
square
#AB298F #AB8629 #29AB45 #294EAB
split-complementary
#AB298F #4EAB29 #29AB86
monochromatic
#48113C #7A1D66 #AB298F #D140B2 #DD71C6

Accessibility & contrast

On white

6.10
#AB298F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AB298F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB298F
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298F#FFFFFF#000000##FFFFFF
##AB298F1.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305592
Deuteranopia (green-blind)
#5C698C
Tritanopia (blue-blind)
#B53059
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab298f;
/* rgb */ color: rgb(171, 41, 143);
/* oklch */ color: oklch(52.2% 0.196 338.3);
Tailwind
colors: {
  custom: {
    50: '#c871b0',
    500: '#ab298f',
    950: '#000000',
  },
}
SCSS
$custom: #ab298f;
$custom-light: #c871b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298f",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 312.923,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52231,
    "c": 0.19563,
    "h": 338.3
  },
  "luminance": 0.12227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB298F

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

Preview Lab → · Contrast checker → · Palette generator →

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