#AB26A5#AB26A5

#AB26A5 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.214 H 330.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AB26A5
RGBrgb(171, 38, 165)
HSLhsl(303, 64%, 41%)
HSVhsv(303, 78%, 67%)
CMYKcmyk(0%, 77.8%, 3.5%, 32.9%)
CIE-LABlab(42.40, 65.51, -38.59)
CIE-LCHlch(42.40, 76.03, 329.50°)
OKLaboklab(53.19% 0.1857 -0.1066)
OKLCHoklch(53.19% 0.214 330.1)
XYZxyz(24.2791, 12.7627, 36.7747)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB26A5 #26AB2C
analogous
#6E26AB #AB26A5 #AB2662
triadic
#AB26A5 #A5AB26 #26A5AB
tetradic
#AB26A5 #AB6E26 #26AB2C #2662AB
square
#AB26A5 #AB6E26 #26AB2C #2662AB
split-complementary
#AB26A5 #62AB26 #26AB6E
monochromatic
#471044 #791B75 #AB26A5 #D33BCD #DF6DD9

Accessibility & contrast

On white

5.91
#AB26A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB26A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB26A5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB26A5#FFFFFF#000000##FFFFFF
##AB26A51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#506AA2
Tritanopia (blue-blind)
#B23A65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab26a5;
/* rgb */ color: rgb(171, 38, 165);
/* oklch */ color: oklch(53.2% 0.214 330.1);
Tailwind
colors: {
  custom: {
    50: '#c870c0',
    500: '#ab26a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab26a5;
$custom-light: #c870c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab26a5",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 302.707,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53191,
    "c": 0.21409,
    "h": 330.1
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#AB26A5
secondary
#68C56C
accent
#E74941
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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