#AB2862#AB2862

#AB2862 is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.3% C 0.173 H 358.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AB2862
RGBrgb(171, 40, 98)
HSLhsl(333, 62%, 41%)
HSVhsv(333, 77%, 67%)
CMYKcmyk(0%, 76.6%, 42.7%, 32.9%)
CIE-LABlab(39.68, 56.19, -1.58)
CIE-LCHlch(39.68, 56.22, 358.39°)
OKLaboklab(50.27% 0.1726 -0.0035)
OKLCHoklch(50.27% 0.173 358.8)
XYZxyz(19.7595, 11.0599, 12.6472)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2862 #28AB71
analogous
#AB28A4 #AB2862 #AB3028
triadic
#AB2862 #62AB28 #2862AB
tetradic
#AB2862 #A4AB28 #28AB71 #3028AB
square
#AB2862 #A4AB28 #28AB71 #3028AB
split-complementary
#AB2862 #28AB30 #28A4AB
monochromatic
#481129 #791C46 #AB2862 #D23E80 #DE70A0

Accessibility & contrast

On white

6.54
#AB2862 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#AB2862 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2862
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2862#FFFFFF#000000##FFFFFF
##AB28621.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454E63
Deuteranopia (green-blind)
#69665F
Tritanopia (blue-blind)
#B91242
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #ab2862;
/* rgb */ color: rgb(171, 40, 98);
/* oklch */ color: oklch(50.3% 0.173 358.8);
Tailwind
colors: {
  custom: {
    50: '#c96f8e',
    500: '#ab2862',
    950: '#000000',
  },
}
SCSS
$custom: #ab2862;
$custom-light: #c96f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2862",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 333.435,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.17266,
    "h": 358.8
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

primary
#AB2862
secondary
#6AC49D
accent
#E59D43
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AB2862

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

Preview Lab → · Contrast checker → · Palette generator →

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