#AB2BA8#AB2BA8

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

Color values

HEX#AB2BA8
RGBrgb(171, 43, 168)
HSLhsl(301, 60%, 42%)
HSVhsv(301, 75%, 67%)
CMYKcmyk(0%, 74.9%, 1.8%, 32.9%)
CIE-LABlab(43.09, 64.51, -39.29)
CIE-LCHlch(43.09, 75.53, 328.65°)
OKLaboklab(53.73% 0.1814 -0.1087)
OKLCHoklch(53.73% 0.211 329.1)
XYZxyz(24.7261, 13.2147, 38.2866)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA8 #2BAB2E
analogous
#6E2BAB #AB2BA8 #AB2B68
triadic
#AB2BA8 #A8AB2B #2BA8AB
tetradic
#AB2BA8 #AB6E2B #2BAB2E #2B68AB
square
#AB2BA8 #AB6E2B #2BAB2E #2B68AB
split-complementary
#AB2BA8 #68AB2B #2BAB6E
monochromatic
#491248 #7A1F78 #AB2BA8 #D043CD #DC74DA

Accessibility & contrast

On white

5.77
#AB2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2BA8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BA8#FFFFFF#000000##FFFFFF
##AB2BA81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145BAB
Deuteranopia (green-blind)
#506CA5
Tritanopia (blue-blind)
#B13E68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2ba8;
/* rgb */ color: rgb(171, 43, 168);
/* oklch */ color: oklch(53.7% 0.211 329.1);
Tailwind
colors: {
  custom: {
    50: '#c872c2',
    500: '#ab2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba8;
$custom-light: #c872c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba8",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 301.406,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53732,
    "c": 0.21149,
    "h": 329.1
  },
  "luminance": 0.13213
}

Semantic roles & 50–950 ramp

primary
#AB2BA8
secondary
#6EC470
accent
#E34945
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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