#AB2F99#AB2F99

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

Color values

HEX#AB2F99
RGBrgb(171, 47, 153)
HSLhsl(309, 57%, 43%)
HSVhsv(309, 73%, 67%)
CMYKcmyk(0%, 72.5%, 10.5%, 32.9%)
CIE-LABlab(42.75, 60.85, -30.84)
CIE-LCHlch(42.75, 68.21, 333.13°)
OKLaboklab(53.24% 0.177 -0.0843)
OKLCHoklch(53.24% 0.196 334.5)
XYZxyz(23.5611, 12.9929, 31.3978)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F99 #2FAB41
analogous
#7F2FAB #AB2F99 #AB2F5B
triadic
#AB2F99 #99AB2F #2F99AB
tetradic
#AB2F99 #AB7F2F #2FAB41 #2F5BAB
square
#AB2F99 #AB7F2F #2FAB41 #2F5BAB
split-complementary
#AB2F99 #5BAB2F #2FAB7F
monochromatic
#4B1543 #7B226E #AB2F99 #CD4ABA #DA7ACC

Accessibility & contrast

On white

5.84
#AB2F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB2F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F99
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F99#FFFFFF#000000##FFFFFF
##AB2F991.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#5A6B96
Tritanopia (blue-blind)
#B33961
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f99;
/* rgb */ color: rgb(171, 47, 153);
/* oklch */ color: oklch(53.2% 0.196 334.5);
Tailwind
colors: {
  custom: {
    50: '#c874b7',
    500: '#ab2f99',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f99;
$custom-light: #c874b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f99",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 308.71,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53237,
    "c": 0.19605,
    "h": 334.5
  },
  "luminance": 0.12991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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