#AB2FB4#AB2FB4

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

Color values

HEX#AB2FB4
RGBrgb(171, 47, 180)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 74%, 71%)
CMYKcmyk(5%, 73.9%, 0%, 29.4%)
CIE-LABlab(44.22, 65.23, -44.60)
CIE-LCHlch(44.22, 79.02, 325.64°)
OKLaboklab(54.76% 0.1776 -0.1242)
OKLCHoklch(54.76% 0.217 325)
XYZxyz(26.0487, 13.9879, 44.4991)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB4 #38B42F
analogous
#692FB4 #AB2FB4 #B42F7B
triadic
#AB2FB4 #B4AB2F #2FB4AB
tetradic
#AB2FB4 #B4692F #38B42F #2F7BB4
square
#AB2FB4 #B4692F #38B42F #2F7BB4
split-complementary
#AB2FB4 #7BB42F #2FB469
monochromatic
#4F1653 #7D2283 #AB2FB4 #C84FD1 #D780DE

Accessibility & contrast

On white

5.53
#AB2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AB2FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB4
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB4#FFFFFF#000000##FFFFFF
##AB2FB41.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#AF466F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2fb4;
/* rgb */ color: rgb(171, 47, 180);
/* oklch */ color: oklch(54.8% 0.217 325.0);
Tailwind
colors: {
  custom: {
    50: '#c875cb',
    500: '#ab2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb4;
$custom-light: #c875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb4",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 295.94,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54759,
    "c": 0.21668,
    "h": 325
  },
  "luminance": 0.13986
}

Semantic roles & 50–950 ramp

primary
#AB2FB4
secondary
#7DC778
accent
#E24651
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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