#AB248A#AB248A

#AB248A is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.6% C 0.197 H 340.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AB248A
RGBrgb(171, 36, 138)
HSLhsl(315, 65%, 41%)
HSVhsv(315, 79%, 67%)
CMYKcmyk(0%, 78.9%, 19.3%, 32.9%)
CIE-LABlab(40.83, 62.11, -24.73)
CIE-LCHlch(40.83, 66.86, 338.29°)
OKLaboklab(51.61% 0.1857 -0.0668)
OKLCHoklch(51.61% 0.197 340.2)
XYZxyz(22.0136, 11.7569, 25.1498)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB248A #24AB45
analogous
#8824AB #AB248A #AB2446
triadic
#AB248A #8AAB24 #248AAB
tetradic
#AB248A #AB8824 #24AB45 #2446AB
square
#AB248A #AB8824 #24AB45 #2446AB
split-complementary
#AB248A #46AB24 #24AB88
monochromatic
#460F38 #781961 #AB248A #D537AE #E06AC3

Accessibility & contrast

On white

6.27
#AB248A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AB248A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB248A
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB248A#FFFFFF#000000##FFFFFF
##AB248A1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#5C6887
Tritanopia (blue-blind)
#B52955
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab248a;
/* rgb */ color: rgb(171, 36, 138);
/* oklch */ color: oklch(51.6% 0.197 340.2);
Tailwind
colors: {
  custom: {
    50: '#c86fac',
    500: '#ab248a',
    950: '#000000',
  },
}
SCSS
$custom: #ab248a;
$custom-light: #c86fac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab248a",
  "rgb": {
    "r": 171,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 314.667,
    "s": 65.217,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51613,
    "c": 0.19734,
    "h": 340.2
  },
  "luminance": 0.11755
}

Semantic roles & 50–950 ramp

primary
#AB248A
secondary
#65C67D
accent
#E86940
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB248A

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

Preview Lab → · Contrast checker → · Palette generator →

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