#AB2257#AB2257

#AB2257 is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.4% C 0.175 H 3.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AB2257
RGBrgb(171, 34, 87)
HSLhsl(337, 67%, 40%)
HSVhsv(337, 80%, 67%)
CMYKcmyk(0%, 80.1%, 49.1%, 32.9%)
CIE-LABlab(38.71, 56.98, 3.99)
CIE-LCHlch(38.71, 57.12, 4.01°)
OKLaboklab(49.45% 0.1747 0.0108)
OKLCHoklch(49.45% 0.175 3.5)
XYZxyz(19.0886, 10.4928, 10.0351)
Luminance0.1049 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2257 #22AB76
analogous
#AB229C #AB2257 #AB3122
triadic
#AB2257 #57AB22 #2257AB
tetradic
#AB2257 #9CAB22 #22AB76 #3122AB
square
#AB2257 #9CAB22 #22AB76 #3122AB
split-complementary
#AB2257 #22AB31 #229CAB
monochromatic
#450E23 #78183D #AB2257 #D73473 #E16796

Accessibility & contrast

On white

6.78
#AB2257 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#AB2257 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2257
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2257#FFFFFF#000000##FFFFFF
##AB22571.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454A58
Deuteranopia (green-blind)
#696554
Tritanopia (blue-blind)
#BA003A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #ab2257;
/* rgb */ color: rgb(171, 34, 87);
/* oklch */ color: oklch(49.4% 0.175 3.5);
Tailwind
colors: {
  custom: {
    50: '#ca6c86',
    500: '#ab2257',
    950: '#000000',
  },
}
SCSS
$custom: #ab2257;
$custom-light: #ca6c86;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2257",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 336.788,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49449,
    "c": 0.17498,
    "h": 3.5
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#AB2257
secondary
#63C6A0
accent
#EAA73E
background
#FDF6F8
surface
#FAECEF
border
#D3C7CA
text
#14080B
muted
#837A7C

Preview Lab

Preview with #AB2257

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

Preview Lab → · Contrast checker → · Palette generator →

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