#AB2897#AB2897

#AB2897 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.202 H 335.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AB2897
RGBrgb(171, 40, 151)
HSLhsl(309, 62%, 41%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 76.6%, 11.7%, 32.9%)
CIE-LABlab(41.86, 62.79, -31.02)
CIE-LCHlch(41.86, 70.04, 333.71°)
OKLaboklab(52.56% 0.1835 -0.0848)
OKLCHoklch(52.56% 0.202 335.2)
XYZxyz(23.1396, 12.4120, 30.4492)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2897 #28AB3C
analogous
#7E28AB #AB2897 #AB2856
triadic
#AB2897 #97AB28 #2897AB
tetradic
#AB2897 #AB7E28 #28AB3C #2856AB
square
#AB2897 #AB7E28 #28AB3C #2856AB
split-complementary
#AB2897 #56AB28 #28AB7E
monochromatic
#48113F #791C6B #AB2897 #D23EBB #DE70CD

Accessibility & contrast

On white

6.03
#AB2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2897
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2897#FFFFFF#000000##FFFFFF
##AB28971.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#586A94
Tritanopia (blue-blind)
#B4335D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2897;
/* rgb */ color: rgb(171, 40, 151);
/* oklch */ color: oklch(52.6% 0.202 335.2);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2897',
    950: '#000000',
  },
}
SCSS
$custom: #ab2897;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2897",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 309.16,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52564,
    "c": 0.20213,
    "h": 335.2
  },
  "luminance": 0.1241
}

Semantic roles & 50–950 ramp

primary
#AB2897
secondary
#6AC478
accent
#E55B43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2897

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

Preview Lab → · Contrast checker → · Palette generator →

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