#AB4F9B#AB4F9B

#AB4F9B is a mid, vivid pink. Relative luminance 0.166; OKLCH L 56.9% C 0.152 H 334.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB4F9B
RGBrgb(171, 79, 155)
HSLhsl(310, 37%, 49%)
HSVhsv(310, 54%, 67%)
CMYKcmyk(0%, 53.8%, 9.4%, 32.9%)
CIE-LABlab(47.78, 47.62, -24.21)
CIE-LCHlch(47.78, 53.42, 333.05°)
OKLaboklab(56.94% 0.1376 -0.0657)
OKLCHoklch(56.94% 0.152 334.5)
XYZxyz(25.5070, 16.6182, 32.8682)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4F9B #4FAB5F
analogous
#8D4FAB #AB4F9B #AB4F6D
triadic
#AB4F9B #9BAB4F #4F9BAB
tetradic
#AB4F9B #AB8D4F #4FAB5F #4F6DAB
square
#AB4F9B #AB8D4F #4FAB5F #4F6DAB
split-complementary
#AB4F9B #6DAB4F #4FAB8D
monochromatic
#57284F #813C75 #AB4F9B #C077B3 #D4A1CB

Accessibility & contrast

On white

4.86
#AB4F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AB4F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4F9B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4F9B#FFFFFF#000000##FFFFFF
##AB4F9B1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E699D
Deuteranopia (green-blind)
#697698
Tritanopia (blue-blind)
#B2546E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4f9b;
/* rgb */ color: rgb(171, 79, 155);
/* oklch */ color: oklch(56.9% 0.152 334.5);
Tailwind
colors: {
  custom: {
    50: '#c684b8',
    500: '#ab4f9b',
    950: '#000000',
  },
}
SCSS
$custom: #ab4f9b;
$custom-light: #c684b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4f9b",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 310.435,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56937,
    "c": 0.15245,
    "h": 334.5
  },
  "luminance": 0.16616
}

Semantic roles & 50–950 ramp

primary
#AB4F9B
secondary
#95C19D
accent
#CD6F5B
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB4F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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