#AB298C#AB298C

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

Color values

HEX#AB298C
RGBrgb(171, 41, 140)
HSLhsl(314, 61%, 42%)
HSVhsv(314, 76%, 67%)
CMYKcmyk(0%, 76%, 18.1%, 32.9%)
CIE-LABlab(41.44, 60.91, -25.01)
CIE-LCHlch(41.44, 65.85, 337.68°)
OKLaboklab(52.08% 0.1815 -0.0676)
OKLCHoklch(52.08% 0.194 339.6)
XYZxyz(22.3218, 12.1395, 25.9734)
Luminance0.1214 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB298C #29AB48
analogous
#8929AB #AB298C #AB294B
triadic
#AB298C #8CAB29 #298CAB
tetradic
#AB298C #AB8929 #29AB48 #294BAB
square
#AB298C #AB8929 #29AB48 #294BAB
split-complementary
#AB298C #4BAB29 #29AB89
monochromatic
#48113B #7A1D64 #AB298C #D140AF #DD71C3

Accessibility & contrast

On white

6.13
#AB298C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB298C
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB298C#FFFFFF#000000##FFFFFF
##AB298C1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#5D6989
Tritanopia (blue-blind)
#B52E58
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab298c;
/* rgb */ color: rgb(171, 41, 140);
/* oklch */ color: oklch(52.1% 0.194 339.6);
Tailwind
colors: {
  custom: {
    50: '#c871ae',
    500: '#ab298c',
    950: '#000000',
  },
}
SCSS
$custom: #ab298c;
$custom-light: #c871ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ab298c",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 314.308,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.19364,
    "h": 339.6
  },
  "luminance": 0.12137
}

Semantic roles & 50–950 ramp

primary
#AB298C
secondary
#6CC481
accent
#E46A43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB298C

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

Preview Lab → · Contrast checker → · Palette generator →

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