#AB26A7#AB26A7

#AB26A7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.216 H 329.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB26A7
RGBrgb(171, 38, 167)
HSLhsl(302, 64%, 41%)
HSVhsv(302, 78%, 67%)
CMYKcmyk(0%, 77.8%, 2.3%, 32.9%)
CIE-LABlab(42.52, 65.83, -39.60)
CIE-LCHlch(42.52, 76.82, 328.97°)
OKLaboklab(53.31% 0.1856 -0.1096)
OKLCHoklch(53.31% 0.216 329.4)
XYZxyz(24.4626, 12.8361, 37.7409)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB26A7 #26AB2A
analogous
#6D26AB #AB26A7 #AB2664
triadic
#AB26A7 #A7AB26 #26A7AB
tetradic
#AB26A7 #AB6D26 #26AB2A #2664AB
square
#AB26A7 #AB6D26 #26AB2A #2664AB
split-complementary
#AB26A7 #64AB26 #26AB6D
monochromatic
#471045 #791B76 #AB26A7 #D33BCF #DF6DDB

Accessibility & contrast

On white

5.89
#AB26A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AB26A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB26A7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB26A7#FFFFFF#000000##FFFFFF
##AB26A71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B59AA
Deuteranopia (green-blind)
#4F6AA4
Tritanopia (blue-blind)
#B13B66
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab26a7;
/* rgb */ color: rgb(171, 38, 167);
/* oklch */ color: oklch(53.3% 0.216 329.4);
Tailwind
colors: {
  custom: {
    50: '#c871c1',
    500: '#ab26a7',
    950: '#000000',
  },
}
SCSS
$custom: #ab26a7;
$custom-light: #c871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab26a7",
  "rgb": {
    "r": 171,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 301.805,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53307,
    "c": 0.21556,
    "h": 329.4
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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