#AB2B98#AB2B98

#AB2B98 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.200 H 334.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB2B98
RGBrgb(171, 43, 152)
HSLhsl(309, 60%, 42%)
HSVhsv(309, 75%, 67%)
CMYKcmyk(0%, 74.9%, 11.1%, 32.9%)
CIE-LABlab(42.24, 62.02, -31.04)
CIE-LCHlch(42.24, 69.35, 333.41°)
OKLaboklab(52.85% 0.1808 -0.0849)
OKLCHoklch(52.85% 0.2 334.9)
XYZxyz(23.3262, 12.6547, 30.9138)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B98 #2BAB3E
analogous
#7E2BAB #AB2B98 #AB2B58
triadic
#AB2B98 #98AB2B #2B98AB
tetradic
#AB2B98 #AB7E2B #2BAB3E #2B58AB
square
#AB2B98 #AB7E2B #2BAB3E #2B58AB
split-complementary
#AB2B98 #58AB2B #2BAB7E
monochromatic
#491241 #7A1F6D #AB2B98 #D043BB #DC74CD

Accessibility & contrast

On white

5.95
#AB2B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B98
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B98#FFFFFF#000000##FFFFFF
##AB2B981.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#596A95
Tritanopia (blue-blind)
#B3365F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2b98;
/* rgb */ color: rgb(171, 43, 152);
/* oklch */ color: oklch(52.8% 0.200 334.9);
Tailwind
colors: {
  custom: {
    50: '#c872b6',
    500: '#ab2b98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b98;
$custom-light: #c872b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b98",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 308.906,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5285,
    "c": 0.19974,
    "h": 334.9
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

primary
#AB2B98
secondary
#6EC47B
accent
#E35C45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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