#AB2F9D#AB2F9D

#AB2F9D is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.4% C 0.199 H 333.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AB2F9D
RGBrgb(171, 47, 157)
HSLhsl(307, 57%, 43%)
HSVhsv(307, 73%, 67%)
CMYKcmyk(0%, 72.5%, 8.2%, 32.9%)
CIE-LABlab(42.95, 61.46, -32.92)
CIE-LCHlch(42.95, 69.73, 331.82°)
OKLaboklab(53.45% 0.1773 -0.0903)
OKLCHoklch(53.45% 0.199 333)
XYZxyz(23.8970, 13.1273, 33.1670)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9D #2FAB3D
analogous
#7B2FAB #AB2F9D #AB2F5F
triadic
#AB2F9D #9DAB2F #2F9DAB
tetradic
#AB2F9D #AB7B2F #2FAB3D #2F5FAB
square
#AB2F9D #AB7B2F #2FAB3D #2F5FAB
split-complementary
#AB2F9D #5FAB2F #2FAB7B
monochromatic
#4B1545 #7B2271 #AB2F9D #CD4ABE #DA7AD0

Accessibility & contrast

On white

5.79
#AB2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB2F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F9D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9D#FFFFFF#000000##FFFFFF
##AB2F9D1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5AA0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#B33B63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f9d;
/* rgb */ color: rgb(171, 47, 157);
/* oklch */ color: oklch(53.4% 0.199 333.0);
Tailwind
colors: {
  custom: {
    50: '#c874ba',
    500: '#ab2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9d;
$custom-light: #c874ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9d",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 306.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53448,
    "c": 0.19898,
    "h": 333
  },
  "luminance": 0.13125
}

Semantic roles & 50–950 ramp

primary
#AB2F9D
secondary
#73C37C
accent
#E05948
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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