#AB2BA2#AB2BA2

#AB2BA2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.207 H 331.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB2BA2
RGBrgb(171, 43, 162)
HSLhsl(304, 60%, 42%)
HSVhsv(304, 75%, 67%)
CMYKcmyk(0%, 74.9%, 5.3%, 32.9%)
CIE-LABlab(42.76, 63.55, -36.23)
CIE-LCHlch(42.76, 73.15, 330.31°)
OKLaboklab(53.39% 0.1813 -0.0998)
OKLCHoklch(53.39% 0.207 331.2)
XYZxyz(24.1800, 12.9963, 35.4104)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA2 #2BAB34
analogous
#742BAB #AB2BA2 #AB2B62
triadic
#AB2BA2 #A2AB2B #2BA2AB
tetradic
#AB2BA2 #AB742B #2BAB34 #2B62AB
square
#AB2BA2 #AB742B #2BAB34 #2B62AB
split-complementary
#AB2BA2 #62AB2B #2BAB74
monochromatic
#491245 #7A1F74 #AB2BA2 #D043C6 #DC74D5

Accessibility & contrast

On white

5.84
#AB2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AB2BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BA2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BA2#FFFFFF#000000##FFFFFF
##AB2BA21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#546B9F
Tritanopia (blue-blind)
#B23B64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ba2;
/* rgb */ color: rgb(171, 43, 162);
/* oklch */ color: oklch(53.4% 0.207 331.2);
Tailwind
colors: {
  custom: {
    50: '#c872be',
    500: '#ab2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba2;
$custom-light: #c872be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba2",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 304.219,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53392,
    "c": 0.207,
    "h": 331.2
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#AB2BA2
secondary
#6EC474
accent
#E35045
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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