#AB2BA7#AB2BA7

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

Color values

HEX#AB2BA7
RGBrgb(171, 43, 167)
HSLhsl(302, 60%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 74.9%, 2.3%, 32.9%)
CIE-LABlab(43.03, 64.35, -38.79)
CIE-LCHlch(43.03, 75.13, 328.92°)
OKLaboklab(53.67% 0.1814 -0.1072)
OKLCHoklch(53.67% 0.211 329.4)
XYZxyz(24.6333, 13.1776, 37.7978)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA7 #2BAB2F
analogous
#6F2BAB #AB2BA7 #AB2B67
triadic
#AB2BA7 #A7AB2B #2BA7AB
tetradic
#AB2BA7 #AB6F2B #2BAB2F #2B67AB
square
#AB2BA7 #AB6F2B #2BAB2F #2B67AB
split-complementary
#AB2BA7 #67AB2B #2BAB6F
monochromatic
#491247 #7A1F77 #AB2BA7 #D043CB #DC74D9

Accessibility & contrast

On white

5.78
#AB2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AB2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BA7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BA7#FFFFFF#000000##FFFFFF
##AB2BA71.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2ba7;
/* rgb */ color: rgb(171, 43, 167);
/* oklch */ color: oklch(53.7% 0.211 329.4);
Tailwind
colors: {
  custom: {
    50: '#c872c1',
    500: '#ab2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba7;
$custom-light: #c872c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba7",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 301.875,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53674,
    "c": 0.21073,
    "h": 329.4
  },
  "luminance": 0.13176
}

Semantic roles & 50–950 ramp

primary
#AB2BA7
secondary
#6EC471
accent
#E34A45
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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