#AB2F9F#AB2F9F

#AB2F9F is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.200 H 332.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AB2F9F
RGBrgb(171, 47, 159)
HSLhsl(306, 57%, 43%)
HSVhsv(306, 73%, 67%)
CMYKcmyk(0%, 72.5%, 7%, 32.9%)
CIE-LABlab(43.06, 61.78, -33.96)
CIE-LCHlch(43.06, 70.50, 331.20°)
OKLaboklab(53.56% 0.1774 -0.0933)
OKLCHoklch(53.56% 0.2 332.3)
XYZxyz(24.0692, 13.1961, 34.0736)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F9F #2FAB3B
analogous
#792FAB #AB2F9F #AB2F61
triadic
#AB2F9F #9FAB2F #2F9FAB
tetradic
#AB2F9F #AB792F #2FAB3B #2F61AB
square
#AB2F9F #AB792F #2FAB3B #2F61AB
split-complementary
#AB2F9F #61AB2F #2FAB79
monochromatic
#4B1546 #7B2272 #AB2F9F #CD4AC1 #DA7AD1

Accessibility & contrast

On white

5.77
#AB2F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB2F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F9F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F9F#FFFFFF#000000##FFFFFF
##AB2F9F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA2
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#B23C64
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2f9f;
/* rgb */ color: rgb(171, 47, 159);
/* oklch */ color: oklch(53.6% 0.200 332.3);
Tailwind
colors: {
  custom: {
    50: '#c874bc',
    500: '#ab2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f9f;
$custom-light: #c874bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f9f",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 305.806,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.20046,
    "h": 332.3
  },
  "luminance": 0.13194
}

Semantic roles & 50–950 ramp

primary
#AB2F9F
secondary
#73C37B
accent
#E05648
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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