#AB2254#AB2254

#AB2254 is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.4% C 0.174 H 5.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AB2254
RGBrgb(171, 34, 84)
HSLhsl(338, 67%, 40%)
HSVhsv(338, 80%, 67%)
CMYKcmyk(0%, 80.1%, 50.9%, 32.9%)
CIE-LABlab(38.63, 56.72, 5.79)
CIE-LCHlch(38.63, 57.02, 5.82°)
OKLaboklab(49.36% 0.1736 0.0152)
OKLCHoklch(49.36% 0.174 5)
XYZxyz(18.9686, 10.4447, 9.4030)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2254 #22AB79
analogous
#AB2298 #AB2254 #AB3422
triadic
#AB2254 #54AB22 #2254AB
tetradic
#AB2254 #98AB22 #22AB79 #3422AB
square
#AB2254 #98AB22 #22AB79 #3422AB
split-complementary
#AB2254 #22AB34 #2298AB
monochromatic
#450E22 #78183B #AB2254 #D7346F #E16793

Accessibility & contrast

On white

6.80
#AB2254 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#AB2254 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2254
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2254#FFFFFF#000000##FFFFFF
##AB22541.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464A55
Deuteranopia (green-blind)
#6A6551
Tritanopia (blue-blind)
#BB0038
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2254;
/* rgb */ color: rgb(171, 34, 84);
/* oklch */ color: oklch(49.4% 0.174 5.0);
Tailwind
colors: {
  custom: {
    50: '#ca6c83',
    500: '#ab2254',
    950: '#000000',
  },
}
SCSS
$custom: #ab2254;
$custom-light: #ca6c83;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2254",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 84
  },
  "hsl": {
    "h": 338.102,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4936,
    "c": 0.17422,
    "h": 5
  },
  "luminance": 0.10442
}

Semantic roles & 50–950 ramp

primary
#AB2254
secondary
#63C6A2
accent
#EAAB3E
background
#FDF6F8
surface
#FAECEF
border
#D3C7CA
text
#14080A
muted
#837A7C

Preview Lab

Preview with #AB2254

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

Preview Lab → · Contrast checker → · Palette generator →

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