#AB2F97#AB2F97

#AB2F97 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.195 H 335.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AB2F97
RGBrgb(171, 47, 151)
HSLhsl(310, 57%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 72.5%, 11.7%, 32.9%)
CIE-LABlab(42.65, 60.54, -29.78)
CIE-LCHlch(42.65, 67.47, 333.81°)
OKLaboklab(53.13% 0.1768 -0.0813)
OKLCHoklch(53.13% 0.195 335.3)
XYZxyz(23.3973, 12.9274, 30.5351)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F97 #2FAB43
analogous
#812FAB #AB2F97 #AB2F59
triadic
#AB2F97 #97AB2F #2F97AB
tetradic
#AB2F97 #AB812F #2FAB43 #2F59AB
square
#AB2F97 #AB812F #2FAB43 #2F59AB
split-complementary
#AB2F97 #59AB2F #2FAB81
monochromatic
#4B1542 #7B226D #AB2F97 #CD4AB8 #DA7ACB

Accessibility & contrast

On white

5.86
#AB2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2F97
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F97#FFFFFF#000000##FFFFFF
##AB2F971.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#5B6B94
Tritanopia (blue-blind)
#B4385F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f97;
/* rgb */ color: rgb(171, 47, 151);
/* oklch */ color: oklch(53.1% 0.195 335.3);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ab2f97',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f97;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f97",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 309.677,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.19461,
    "h": 335.3
  },
  "luminance": 0.12925
}

Semantic roles & 50–950 ramp

primary
#AB2F97
secondary
#73C380
accent
#E06048
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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