#AB268A#AB268A

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

Color values

HEX#AB268A
RGBrgb(171, 38, 138)
HSLhsl(315, 64%, 41%)
HSVhsv(315, 78%, 67%)
CMYKcmyk(0%, 77.8%, 19.3%, 32.9%)
CIE-LABlab(41.03, 61.54, -24.42)
CIE-LCHlch(41.03, 66.21, 338.35°)
OKLaboklab(51.76% 0.1839 -0.0659)
OKLCHoklch(51.76% 0.195 340.3)
XYZxyz(22.0758, 11.8814, 25.1706)
Luminance0.1188 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB268A #26AB47
analogous
#8926AB #AB268A #AB2647
triadic
#AB268A #8AAB26 #268AAB
tetradic
#AB268A #AB8926 #26AB47 #2647AB
square
#AB268A #AB8926 #26AB47 #2647AB
split-complementary
#AB268A #47AB26 #26AB89
monochromatic
#471039 #791B62 #AB268A #D33BAE #DF6DC2

Accessibility & contrast

On white

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

On black

3.38
#AB268A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB268A#FFFFFF#000000##FFFFFF
##AB268A1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538D
Deuteranopia (green-blind)
#5D6887
Tritanopia (blue-blind)
#B52A56
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab268a;
/* rgb */ color: rgb(171, 38, 138);
/* oklch */ color: oklch(51.8% 0.195 340.3);
Tailwind
colors: {
  custom: {
    50: '#c86fac',
    500: '#ab268a',
    950: '#000000',
  },
}
SCSS
$custom: #ab268a;
$custom-light: #c86fac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab268a",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 314.887,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51757,
    "c": 0.19541,
    "h": 340.3
  },
  "luminance": 0.11879
}

Semantic roles & 50–950 ramp

primary
#AB268A
secondary
#68C57F
accent
#E76A41
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB268A

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

Preview Lab → · Contrast checker → · Palette generator →

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