#AB2796#AB2796

#AB2796 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.202 H 335.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AB2796
RGBrgb(171, 39, 150)
HSLhsl(310, 63%, 41%)
HSVhsv(310, 77%, 67%)
CMYKcmyk(0%, 77.2%, 12.3%, 32.9%)
CIE-LABlab(41.71, 62.95, -30.66)
CIE-LCHlch(41.71, 70.02, 334.03°)
OKLaboklab(52.44% 0.1843 -0.0838)
OKLCHoklch(52.44% 0.202 335.6)
XYZxyz(23.0255, 12.3131, 30.0122)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2796 #27AB3C
analogous
#7E27AB #AB2796 #AB2754
triadic
#AB2796 #96AB27 #2796AB
tetradic
#AB2796 #AB7E27 #27AB3C #2754AB
square
#AB2796 #AB7E27 #27AB3C #2754AB
split-complementary
#AB2796 #54AB27 #27AB7E
monochromatic
#47103F #791C6A #AB2796 #D33DBB #DE6ECC

Accessibility & contrast

On white

6.07
#AB2796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2796
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2796#FFFFFF#000000##FFFFFF
##AB27961.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285699
Deuteranopia (green-blind)
#586993
Tritanopia (blue-blind)
#B4325D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2796;
/* rgb */ color: rgb(171, 39, 150);
/* oklch */ color: oklch(52.4% 0.202 335.6);
Tailwind
colors: {
  custom: {
    50: '#c870b5',
    500: '#ab2796',
    950: '#000000',
  },
}
SCSS
$custom: #ab2796;
$custom-light: #c870b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2796",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 309.545,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52437,
    "c": 0.20243,
    "h": 335.6
  },
  "luminance": 0.12311
}

Semantic roles & 50–950 ramp

primary
#AB2796
secondary
#69C578
accent
#E65C42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2796

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

Preview Lab → · Contrast checker → · Palette generator →

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