#AB26A2#AB26A2

#AB26A2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.212 H 331.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB26A2
RGBrgb(171, 38, 162)
HSLhsl(304, 64%, 41%)
HSVhsv(304, 78%, 67%)
CMYKcmyk(0%, 77.8%, 5.3%, 32.9%)
CIE-LABlab(42.24, 65.04, -37.05)
CIE-LCHlch(42.24, 74.86, 330.33°)
OKLaboklab(53.02% 0.1856 -0.1022)
OKLCHoklch(53.02% 0.212 331.2)
XYZxyz(24.0093, 12.6548, 35.3535)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB26A2 #26AB2F
analogous
#7126AB #AB26A2 #AB265F
triadic
#AB26A2 #A2AB26 #26A2AB
tetradic
#AB26A2 #AB7126 #26AB2F #265FAB
square
#AB26A2 #AB7126 #26AB2F #265FAB
split-complementary
#AB26A2 #5FAB26 #26AB71
monochromatic
#471043 #791B73 #AB26A2 #D33BC9 #DF6DD7

Accessibility & contrast

On white

5.95
#AB26A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB26A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB26A2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB26A2#FFFFFF#000000##FFFFFF
##AB26A21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A5
Deuteranopia (green-blind)
#526A9F
Tritanopia (blue-blind)
#B23863
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab26a2;
/* rgb */ color: rgb(171, 38, 162);
/* oklch */ color: oklch(53.0% 0.212 331.2);
Tailwind
colors: {
  custom: {
    50: '#c870be',
    500: '#ab26a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab26a2;
$custom-light: #c870be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab26a2",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 304.06,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5302,
    "c": 0.21191,
    "h": 331.2
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

primary
#AB26A2
secondary
#68C56E
accent
#E74C41
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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