#AB2AB2#AB2AB2

#AB2AB2 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.220 H 325.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AB2AB2
RGBrgb(171, 42, 178)
HSLhsl(297, 62%, 43%)
HSVhsv(297, 76%, 70%)
CMYKcmyk(3.9%, 76.4%, 0%, 30.2%)
CIE-LABlab(43.55, 66.46, -44.48)
CIE-LCHlch(43.55, 79.97, 326.21°)
OKLaboklab(54.25% 0.182 -0.1238)
OKLCHoklch(54.25% 0.22 325.8)
XYZxyz(25.6579, 13.5300, 43.3710)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AB2 #31B22A
analogous
#672AB2 #AB2AB2 #B22A75
triadic
#AB2AB2 #B2AB2A #2AB2AB
tetradic
#AB2AB2 #B2672A #31B22A #2A75B2
square
#AB2AB2 #B2672A #31B22A #2A75B2
split-complementary
#AB2AB2 #75B22A #2AB267
monochromatic
#4C134F #7B1E80 #AB2AB2 #CC46D3 #DA77DF

Accessibility & contrast

On white

5.67
#AB2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AB2AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AB2
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AB2#FFFFFF#000000##FFFFFF
##AB2AB21.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#4A6CAF
Tritanopia (blue-blind)
#AF436D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2ab2;
/* rgb */ color: rgb(171, 42, 178);
/* oklch */ color: oklch(54.2% 0.220 325.8);
Tailwind
colors: {
  custom: {
    50: '#c873c9',
    500: '#ab2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2ab2;
$custom-light: #c873c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2ab2",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 296.912,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54248,
    "c": 0.22012,
    "h": 325.8
  },
  "luminance": 0.13528
}

Semantic roles & 50–950 ramp

primary
#AB2AB2
secondary
#75C771
accent
#E5434B
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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