#AB5291#AB5291

#AB5291 is a mid, vivid pink. Relative luminance 0.167; OKLCH L 56.9% C 0.140 H 339.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB5291
RGBrgb(171, 82, 145)
HSLhsl(318, 35%, 50%)
HSVhsv(318, 52%, 67%)
CMYKcmyk(0%, 52%, 15.2%, 32.9%)
CIE-LABlab(47.93, 44.47, -18.01)
CIE-LCHlch(47.93, 47.98, 337.95°)
OKLaboklab(56.92% 0.1309 -0.0483)
OKLCHoklch(56.92% 0.14 339.8)
XYZxyz(24.9230, 16.7387, 28.7008)
Luminance0.1674 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5291 #52AB6C
analogous
#9952AB #AB5291 #AB5265
triadic
#AB5291 #91AB52 #5291AB
tetradic
#AB5291 #AB9952 #52AB6C #5265AB
square
#AB5291 #AB9952 #52AB6C #5265AB
split-complementary
#AB5291 #65AB52 #52AB99
monochromatic
#582A4B #823E6E #AB5291 #C07BAB #D3A4C6

Accessibility & contrast

On white

4.83
#AB5291 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AB5291 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB5291
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5291#FFFFFF#000000##FFFFFF
##AB52911.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566993
Deuteranopia (green-blind)
#6F778F
Tritanopia (blue-blind)
#B4546B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab5291;
/* rgb */ color: rgb(171, 82, 145);
/* oklch */ color: oklch(56.9% 0.140 339.8);
Tailwind
colors: {
  custom: {
    50: '#c686b1',
    500: '#ab5291',
    950: '#000000',
  },
}
SCSS
$custom: #ab5291;
$custom-light: #c686b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5291",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 317.528,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56916,
    "c": 0.13955,
    "h": 339.8
  },
  "luminance": 0.16737
}

Semantic roles & 50–950 ramp

primary
#AB5291
secondary
#98C1A4
accent
#CB7D5D
background
#FCF8FA
surface
#F8F0F5
border
#D1CBCF
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AB5291

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

Preview Lab → · Contrast checker → · Palette generator →

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