#AB2BA6#AB2BA6

#AB2BA6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.210 H 329.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AB2BA6
RGBrgb(171, 43, 166)
HSLhsl(302, 60%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 74.9%, 2.9%, 32.9%)
CIE-LABlab(42.97, 64.19, -38.28)
CIE-LCHlch(42.97, 74.73, 329.19°)
OKLaboklab(53.62% 0.1814 -0.1058)
OKLCHoklch(53.62% 0.21 329.8)
XYZxyz(24.5413, 13.1408, 37.3129)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2BA6 #2BAB30
analogous
#702BAB #AB2BA6 #AB2B66
triadic
#AB2BA6 #A6AB2B #2BA6AB
tetradic
#AB2BA6 #AB702B #2BAB30 #2B66AB
square
#AB2BA6 #AB702B #2BAB30 #2B66AB
split-complementary
#AB2BA6 #66AB2B #2BAB70
monochromatic
#491247 #7A1F77 #AB2BA6 #D043CA #DC74D8

Accessibility & contrast

On white

5.79
#AB2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AB2BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2BA6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2BA6#FFFFFF#000000##FFFFFF
##AB2BA61.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BA9
Deuteranopia (green-blind)
#526BA3
Tritanopia (blue-blind)
#B13D67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2ba6;
/* rgb */ color: rgb(171, 43, 166);
/* oklch */ color: oklch(53.6% 0.210 329.8);
Tailwind
colors: {
  custom: {
    50: '#c872c1',
    500: '#ab2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ba6;
$custom-light: #c872c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ba6",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 302.344,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53617,
    "c": 0.20998,
    "h": 329.8
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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