#AB2FB7#AB2FB7

#AB2FB7 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.219 H 324.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AB2FB7
RGBrgb(171, 47, 183)
HSLhsl(295, 59%, 45%)
HSVhsv(295, 74%, 72%)
CMYKcmyk(6.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(44.39, 65.74, -46.08)
CIE-LCHlch(44.39, 80.29, 324.97°)
OKLaboklab(54.94% 0.1774 -0.1285)
OKLCHoklch(54.94% 0.219 324.1)
XYZxyz(26.3576, 14.1115, 46.1261)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FB7 #3BB72F
analogous
#672FB7 #AB2FB7 #B72F7F
triadic
#AB2FB7 #B7AB2F #2FB7AB
tetradic
#AB2FB7 #B7672F #3BB72F #2F7FB7
square
#AB2FB7 #B7672F #3BB72F #2F7FB7
split-complementary
#AB2FB7 #7FB72F #2FB767
monochromatic
#501656 #7D2286 #AB2FB7 #C751D2 #D782DF

Accessibility & contrast

On white

5.49
#AB2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AB2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FB7
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FB7#FFFFFF#000000##FFFFFF
##AB2FB71.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#496EB4
Tritanopia (blue-blind)
#AE4871
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2fb7;
/* rgb */ color: rgb(171, 47, 183);
/* oklch */ color: oklch(54.9% 0.219 324.1);
Tailwind
colors: {
  custom: {
    50: '#c875cd',
    500: '#ab2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fb7;
$custom-light: #c875cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fb7",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 294.706,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54942,
    "c": 0.21907,
    "h": 324.1
  },
  "luminance": 0.1411
}

Semantic roles & 50–950 ramp

primary
#AB2FB7
secondary
#81C87A
accent
#E24553
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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