#AB2F98#AB2F98

#AB2F98 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.195 H 334.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB2F98
RGBrgb(171, 47, 152)
HSLhsl(309, 57%, 43%)
HSVhsv(309, 73%, 67%)
CMYKcmyk(0%, 72.5%, 11.1%, 32.9%)
CIE-LABlab(42.70, 60.70, -30.31)
CIE-LCHlch(42.70, 67.84, 333.46°)
OKLaboklab(53.19% 0.1769 -0.0828)
OKLCHoklch(53.19% 0.195 334.9)
XYZxyz(23.4789, 12.9600, 30.9646)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F98 #2FAB42
analogous
#802FAB #AB2F98 #AB2F5A
triadic
#AB2F98 #98AB2F #2F98AB
tetradic
#AB2F98 #AB802F #2FAB42 #2F5AAB
square
#AB2F98 #AB802F #2FAB42 #2F5AAB
split-complementary
#AB2F98 #5AAB2F #2FAB80
monochromatic
#4B1543 #7B226D #AB2F98 #CD4AB9 #DA7ACC

Accessibility & contrast

On white

5.85
#AB2F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F98
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F98#FFFFFF#000000##FFFFFF
##AB2F981.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B33960
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f98;
/* rgb */ color: rgb(171, 47, 152);
/* oklch */ color: oklch(53.2% 0.195 334.9);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ab2f98',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f98;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f98",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 309.194,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53185,
    "c": 0.19532,
    "h": 334.9
  },
  "luminance": 0.12958
}

Semantic roles & 50–950 ramp

primary
#AB2F98
secondary
#73C37F
accent
#E05F48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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