#AB26A6#AB26A6

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

Color values

HEX#AB26A6
RGBrgb(171, 38, 166)
HSLhsl(302, 64%, 41%)
HSVhsv(302, 78%, 67%)
CMYKcmyk(0%, 77.8%, 2.9%, 32.9%)
CIE-LABlab(42.46, 65.67, -39.09)
CIE-LCHlch(42.46, 76.42, 329.23°)
OKLaboklab(53.25% 0.1856 -0.1081)
OKLCHoklch(53.25% 0.215 329.8)
XYZxyz(24.3705, 12.7992, 37.2559)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB26A6 #26AB2B
analogous
#6D26AB #AB26A6 #AB2663
triadic
#AB26A6 #A6AB26 #26A6AB
tetradic
#AB26A6 #AB6D26 #26AB2B #2663AB
square
#AB26A6 #AB6D26 #26AB2B #2663AB
split-complementary
#AB26A6 #63AB26 #26AB6D
monochromatic
#471045 #791B75 #AB26A6 #D33BCE #DF6DDA

Accessibility & contrast

On white

5.90
#AB26A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB26A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB26A6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB26A6#FFFFFF#000000##FFFFFF
##AB26A61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E59A9
Deuteranopia (green-blind)
#506AA3
Tritanopia (blue-blind)
#B13A65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab26a6;
/* rgb */ color: rgb(171, 38, 166);
/* oklch */ color: oklch(53.2% 0.215 329.8);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab26a6',
    950: '#000000',
  },
}
SCSS
$custom: #ab26a6;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab26a6",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 302.256,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53249,
    "c": 0.21483,
    "h": 329.8
  },
  "luminance": 0.12797
}

Semantic roles & 50–950 ramp

primary
#AB26A6
secondary
#68C56B
accent
#E74741
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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