#AB5297#AB5297

#AB5297 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.2% C 0.144 H 336.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB5297
RGBrgb(171, 82, 151)
HSLhsl(313, 35%, 50%)
HSVhsv(313, 52%, 67%)
CMYKcmyk(0%, 52%, 11.7%, 32.9%)
CIE-LABlab(48.17, 45.46, -21.22)
CIE-LCHlch(48.17, 50.16, 334.98°)
OKLaboklab(57.18% 0.1324 -0.0573)
OKLCHoklch(57.18% 0.144 336.6)
XYZxyz(25.3980, 16.9287, 31.2020)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5297 #52AB66
analogous
#9352AB #AB5297 #AB526B
triadic
#AB5297 #97AB52 #5297AB
tetradic
#AB5297 #AB9352 #52AB66 #526BAB
square
#AB5297 #AB9352 #52AB66 #526BAB
split-complementary
#AB5297 #6BAB52 #52AB93
monochromatic
#582A4E #823E72 #AB5297 #C07BB0 #D3A4C9

Accessibility & contrast

On white

4.79
#AB5297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB5297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5297
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5297#FFFFFF#000000##FFFFFF
##AB52971.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A99
Deuteranopia (green-blind)
#6D7795
Tritanopia (blue-blind)
#B3566D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab5297;
/* rgb */ color: rgb(171, 82, 151);
/* oklch */ color: oklch(57.2% 0.144 336.6);
Tailwind
colors: {
  custom: {
    50: '#c686b5',
    500: '#ab5297',
    950: '#000000',
  },
}
SCSS
$custom: #ab5297;
$custom-light: #c686b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5297",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 151
  },
  "hsl": {
    "h": 313.483,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57175,
    "c": 0.14422,
    "h": 336.6
  },
  "luminance": 0.16927
}

Semantic roles & 50–950 ramp

primary
#AB5297
secondary
#98C1A1
accent
#CB755D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB5297

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

Preview Lab → · Contrast checker → · Palette generator →

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