#AB2CA7#AB2CA7

#AB2CA7 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.210 H 329.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AB2CA7
RGBrgb(171, 44, 167)
HSLhsl(302, 59%, 42%)
HSVhsv(302, 74%, 67%)
CMYKcmyk(0%, 74.3%, 2.3%, 32.9%)
CIE-LABlab(43.14, 64.03, -38.61)
CIE-LCHlch(43.14, 74.77, 328.91°)
OKLaboklab(53.75% 0.1805 -0.1067)
OKLCHoklch(53.75% 0.21 329.4)
XYZxyz(24.6701, 13.2512, 37.8101)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2CA7 #2CAB30
analogous
#702CAB #AB2CA7 #AB2C67
triadic
#AB2CA7 #A7AB2C #2CA7AB
tetradic
#AB2CA7 #AB702C #2CAB30 #2C67AB
square
#AB2CA7 #AB702C #2CAB30 #2C67AB
split-complementary
#AB2CA7 #67AB2C #2CAB70
monochromatic
#4A1348 #7A1F77 #AB2CA7 #CF45CB #DC76D8

Accessibility & contrast

On white

5.75
#AB2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2CA7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2CA7#FFFFFF#000000##FFFFFF
##AB2CA71.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BAA
Deuteranopia (green-blind)
#516CA4
Tritanopia (blue-blind)
#B13E67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ca7;
/* rgb */ color: rgb(171, 44, 167);
/* oklch */ color: oklch(53.8% 0.210 329.4);
Tailwind
colors: {
  custom: {
    50: '#c873c1',
    500: '#ab2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ca7;
$custom-light: #c873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ca7",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 301.89,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53753,
    "c": 0.2097,
    "h": 329.4
  },
  "luminance": 0.13249
}

Semantic roles & 50–950 ramp

primary
#AB2CA7
secondary
#6FC372
accent
#E24A46
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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