#AB2CB7#AB2CB7

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

Color values

HEX#AB2CB7
RGBrgb(171, 44, 183)
HSLhsl(295, 61%, 45%)
HSVhsv(295, 76%, 72%)
CMYKcmyk(6.6%, 76%, 0%, 28.2%)
CIE-LABlab(44.06, 66.70, -46.61)
CIE-LCHlch(44.06, 81.37, 325.05°)
OKLaboklab(54.71% 0.18 -0.13)
OKLCHoklch(54.71% 0.222 324.2)
XYZxyz(26.2418, 13.8799, 46.0875)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CB7 #38B72C
analogous
#662CB7 #AB2CB7 #B72C7E
triadic
#AB2CB7 #B7AB2C #2CB7AB
tetradic
#AB2CB7 #B7662C #38B72C #2C7EB7
square
#AB2CB7 #B7662C #38B72C #2C7EB7
split-complementary
#AB2CB7 #7EB72C #2CB766
monochromatic
#4F1454 #7D2086 #AB2CB7 #C84CD4 #D77EE0

Accessibility & contrast

On white

5.56
#AB2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AB2CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CB7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CB7#FFFFFF#000000##FFFFFF
##AB2CB71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#476DB4
Tritanopia (blue-blind)
#AE4670
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2cb7;
/* rgb */ color: rgb(171, 44, 183);
/* oklch */ color: oklch(54.7% 0.222 324.2);
Tailwind
colors: {
  custom: {
    50: '#c873cd',
    500: '#ab2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2cb7;
$custom-light: #c873cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2cb7",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 294.82,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54706,
    "c": 0.22209,
    "h": 324.2
  },
  "luminance": 0.13878
}

Semantic roles & 50–950 ramp

primary
#AB2CB7
secondary
#7DC876
accent
#E44351
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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