#AB248E#AB248E

#AB248E is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.200 H 338.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AB248E
RGBrgb(171, 36, 142)
HSLhsl(313, 65%, 41%)
HSVhsv(313, 79%, 67%)
CMYKcmyk(0%, 78.9%, 17%, 32.9%)
CIE-LABlab(41.02, 62.66, -26.88)
CIE-LCHlch(41.02, 68.19, 336.78°)
OKLaboklab(51.81% 0.1861 -0.0729)
OKLCHoklch(51.81% 0.2 338.6)
XYZxyz(22.3085, 11.8749, 26.7031)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB248E #24AB41
analogous
#8424AB #AB248E #AB244A
triadic
#AB248E #8EAB24 #248EAB
tetradic
#AB248E #AB8424 #24AB41 #244AAB
square
#AB248E #AB8424 #24AB41 #244AAB
split-complementary
#AB248E #4AAB24 #24AB84
monochromatic
#460F3A #781964 #AB248E #D537B3 #E06AC6

Accessibility & contrast

On white

6.22
#AB248E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB248E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB248E
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB248E#FFFFFF#000000##FFFFFF
##AB248E1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5391
Deuteranopia (green-blind)
#5A688B
Tritanopia (blue-blind)
#B52B57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab248e;
/* rgb */ color: rgb(171, 36, 142);
/* oklch */ color: oklch(51.8% 0.200 338.6);
Tailwind
colors: {
  custom: {
    50: '#c86faf',
    500: '#ab248e',
    950: '#000000',
  },
}
SCSS
$custom: #ab248e;
$custom-light: #c86faf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab248e",
  "rgb": {
    "r": 171,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 312.889,
    "s": 65.217,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51811,
    "c": 0.19992,
    "h": 338.6
  },
  "luminance": 0.11873
}

Semantic roles & 50–950 ramp

primary
#AB248E
secondary
#65C67A
accent
#E86440
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB248E

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

Preview Lab → · Contrast checker → · Palette generator →

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