#AB5299#AB5299

#AB5299 is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.3% C 0.146 H 335.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB5299
RGBrgb(171, 82, 153)
HSLhsl(312, 35%, 50%)
HSVhsv(312, 52%, 67%)
CMYKcmyk(0%, 52%, 10.5%, 32.9%)
CIE-LABlab(48.25, 45.79, -22.28)
CIE-LCHlch(48.25, 50.92, 334.05°)
OKLaboklab(57.26% 0.1328 -0.0603)
OKLCHoklch(57.26% 0.146 335.6)
XYZxyz(25.5618, 16.9942, 32.0647)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5299 #52AB64
analogous
#9152AB #AB5299 #AB526D
triadic
#AB5299 #99AB52 #5299AB
tetradic
#AB5299 #AB9152 #52AB64 #526DAB
square
#AB5299 #AB9152 #52AB64 #526DAB
split-complementary
#AB5299 #6DAB52 #52AB91
monochromatic
#582A4F #823E74 #AB5299 #C07BB2 #D3A4CA

Accessibility & contrast

On white

4.77
#AB5299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB5299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5299
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5299#FFFFFF#000000##FFFFFF
##AB52991.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A9B
Deuteranopia (green-blind)
#6C7797
Tritanopia (blue-blind)
#B2566E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab5299;
/* rgb */ color: rgb(171, 82, 153);
/* oklch */ color: oklch(57.3% 0.146 335.6);
Tailwind
colors: {
  custom: {
    50: '#c686b7',
    500: '#ab5299',
    950: '#000000',
  },
}
SCSS
$custom: #ab5299;
$custom-light: #c686b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5299",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 312.135,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57263,
    "c": 0.14585,
    "h": 335.6
  },
  "luminance": 0.16992
}

Semantic roles & 50–950 ramp

primary
#AB5299
secondary
#98C1A0
accent
#CB735D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB5299

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

Preview Lab → · Contrast checker → · Palette generator →

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