#AB2FB3#AB2FB3

#AB2FB3 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.216 H 325.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB2FB3
RGBrgb(171, 47, 179)
HSLhsl(296, 58%, 44%)
HSVhsv(296, 74%, 70%)
CMYKcmyk(4.5%, 73.7%, 0%, 29.8%)
CIE-LABlab(44.16, 65.06, -44.10)
CIE-LCHlch(44.16, 78.60, 325.87°)
OKLaboklab(54.7% 0.1776 -0.1227)
OKLCHoklch(54.7% 0.216 325.4)
XYZxyz(25.9472, 13.9473, 43.9645)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB3 #37B32F
analogous
#692FB3 #AB2FB3 #B32F79
triadic
#AB2FB3 #B3AB2F #2FB3AB
tetradic
#AB2FB3 #B3692F #37B32F #2F79B3
square
#AB2FB3 #B3692F #37B32F #2F79B3
split-complementary
#AB2FB3 #79B32F #2FB369
monochromatic
#4E1652 #7D2283 #AB2FB3 #C94FD1 #D87FDD

Accessibility & contrast

On white

5.54
#AB2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB2FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB3#FFFFFF#000000##FFFFFF
##AB2FB31.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#4B6EB0
Tritanopia (blue-blind)
#AF466F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2fb3;
/* rgb */ color: rgb(171, 47, 179);
/* oklch */ color: oklch(54.7% 0.216 325.4);
Tailwind
colors: {
  custom: {
    50: '#c875ca',
    500: '#ab2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb3;
$custom-light: #c875ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb3",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 296.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54699,
    "c": 0.21589,
    "h": 325.4
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#AB2FB3
secondary
#7CC678
accent
#E24650
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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