#AB2895#AB2895

#AB2895 is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.5% C 0.201 H 336.0°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB2895
RGBrgb(171, 40, 149)
HSLhsl(310, 62%, 41%)
HSVhsv(310, 77%, 67%)
CMYKcmyk(0%, 76.6%, 12.9%, 32.9%)
CIE-LABlab(41.76, 62.50, -29.97)
CIE-LCHlch(41.76, 69.32, 334.38°)
OKLaboklab(52.46% 0.1833 -0.0818)
OKLCHoklch(52.46% 0.201 336)
XYZxyz(22.9786, 12.3476, 29.6011)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2895 #28AB3E
analogous
#8028AB #AB2895 #AB2854
triadic
#AB2895 #95AB28 #2895AB
tetradic
#AB2895 #AB8028 #28AB3E #2854AB
square
#AB2895 #AB8028 #28AB3E #2854AB
split-complementary
#AB2895 #54AB28 #28AB80
monochromatic
#48113F #791C6A #AB2895 #D23EB9 #DE70CB

Accessibility & contrast

On white

6.05
#AB2895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB2895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2895
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2895#FFFFFF#000000##FFFFFF
##AB28951.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5698
Deuteranopia (green-blind)
#596992
Tritanopia (blue-blind)
#B4325C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2895;
/* rgb */ color: rgb(171, 40, 149);
/* oklch */ color: oklch(52.5% 0.201 336.0);
Tailwind
colors: {
  custom: {
    50: '#c871b4',
    500: '#ab2895',
    950: '#000000',
  },
}
SCSS
$custom: #ab2895;
$custom-light: #c871b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2895",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 310.076,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5246,
    "c": 0.20075,
    "h": 336
  },
  "luminance": 0.12345
}

Semantic roles & 50–950 ramp

primary
#AB2895
secondary
#6AC479
accent
#E55E43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2895

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

Preview Lab → · Contrast checker → · Palette generator →

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