#AB2FB5#AB2FB5

#AB2FB5 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.217 H 324.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AB2FB5
RGBrgb(171, 47, 181)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 74%, 71%)
CMYKcmyk(5.5%, 74%, 0%, 29%)
CIE-LABlab(44.27, 65.40, -45.10)
CIE-LCHlch(44.27, 79.44, 325.41°)
OKLaboklab(54.82% 0.1775 -0.1256)
OKLCHoklch(54.82% 0.217 324.7)
XYZxyz(26.1509, 14.0288, 45.0375)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB5 #39B52F
analogous
#682FB5 #AB2FB5 #B52F7C
triadic
#AB2FB5 #B5AB2F #2FB5AB
tetradic
#AB2FB5 #B5682F #39B52F #2F7CB5
square
#AB2FB5 #B5682F #39B52F #2F7CB5
split-complementary
#AB2FB5 #7CB52F #2FB568
monochromatic
#4F1654 #7D2284 #AB2FB5 #C850D1 #D780DE

Accessibility & contrast

On white

5.52
#AB2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB2FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB5
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB5#FFFFFF#000000##FFFFFF
##AB2FB51.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#4A6EB2
Tritanopia (blue-blind)
#AF4770
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2fb5;
/* rgb */ color: rgb(171, 47, 181);
/* oklch */ color: oklch(54.8% 0.217 324.7);
Tailwind
colors: {
  custom: {
    50: '#c875cc',
    500: '#ab2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb5;
$custom-light: #c875cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb5",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 295.522,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5482,
    "c": 0.21748,
    "h": 324.7
  },
  "luminance": 0.14027
}

Semantic roles & 50–950 ramp

primary
#AB2FB5
secondary
#7FC779
accent
#E24651
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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