#AB2898#AB2898

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

Color values

HEX#AB2898
RGBrgb(171, 40, 152)
HSLhsl(309, 62%, 41%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 76.6%, 11.1%, 32.9%)
CIE-LABlab(41.91, 62.94, -31.55)
CIE-LCHlch(41.91, 70.41, 333.38°)
OKLaboklab(52.62% 0.1836 -0.0863)
OKLCHoklch(52.62% 0.203 334.8)
XYZxyz(23.2212, 12.4446, 30.8787)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2898 #28AB3B
analogous
#7D28AB #AB2898 #AB2857
triadic
#AB2898 #98AB28 #2898AB
tetradic
#AB2898 #AB7D28 #28AB3B #2857AB
square
#AB2898 #AB7D28 #28AB3B #2857AB
split-complementary
#AB2898 #57AB28 #28AB7D
monochromatic
#481140 #791C6C #AB2898 #D23EBD #DE70CE

Accessibility & contrast

On white

6.02
#AB2898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB2898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2898
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2898#FFFFFF#000000##FFFFFF
##AB28981.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#576A95
Tritanopia (blue-blind)
#B3345E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2898;
/* rgb */ color: rgb(171, 40, 152);
/* oklch */ color: oklch(52.6% 0.203 334.8);
Tailwind
colors: {
  custom: {
    50: '#c871b6',
    500: '#ab2898',
    950: '#000000',
  },
}
SCSS
$custom: #ab2898;
$custom-light: #c871b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2898",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 308.702,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52617,
    "c": 0.20283,
    "h": 334.8
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#AB2898
secondary
#6AC477
accent
#E55A43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2898

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

Preview Lab → · Contrast checker → · Palette generator →

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