#AB277F#AB277F

#AB277F is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.3% C 0.188 H 345.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AB277F
RGBrgb(171, 39, 127)
HSLhsl(320, 63%, 41%)
HSVhsv(320, 77%, 67%)
CMYKcmyk(0%, 77.2%, 25.7%, 32.9%)
CIE-LABlab(40.64, 59.79, -18.25)
CIE-LCHlch(40.64, 62.52, 343.02°)
OKLaboklab(51.32% 0.1812 -0.0486)
OKLCHoklch(51.32% 0.188 345)
XYZxyz(21.3518, 11.6436, 21.1976)
Luminance0.1164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB277F #27AB53
analogous
#9527AB #AB277F #AB273D
triadic
#AB277F #7FAB27 #277FAB
tetradic
#AB277F #AB9527 #27AB53 #273DAB
square
#AB277F #AB9527 #27AB53 #273DAB
split-complementary
#AB277F #3DAB27 #27AB95
monochromatic
#471035 #791C5A #AB277F #D33DA1 #DE6EB9

Accessibility & contrast

On white

6.31
#AB277F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AB277F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB277F
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB277F#FFFFFF#000000##FFFFFF
##AB277F1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385281
Deuteranopia (green-blind)
#61687C
Tritanopia (blue-blind)
#B72550
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab277f;
/* rgb */ color: rgb(171, 39, 127);
/* oklch */ color: oklch(51.3% 0.188 345.0);
Tailwind
colors: {
  custom: {
    50: '#c86fa4',
    500: '#ab277f',
    950: '#000000',
  },
}
SCSS
$custom: #ab277f;
$custom-light: #c86fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab277f",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 320,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.18764,
    "h": 345
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#AB277F
secondary
#69C588
accent
#E67942
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB277F

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

Preview Lab → · Contrast checker → · Palette generator →

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