#AB2797#AB2797

#AB2797 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.203 H 335.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB2797
RGBrgb(171, 39, 151)
HSLhsl(309, 63%, 41%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 77.2%, 11.7%, 32.9%)
CIE-LABlab(41.76, 63.09, -31.19)
CIE-LCHlch(41.76, 70.38, 333.70°)
OKLaboklab(52.49% 0.1844 -0.0853)
OKLCHoklch(52.49% 0.203 335.2)
XYZxyz(23.1063, 12.3454, 30.4381)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2797 #27AB3B
analogous
#7D27AB #AB2797 #AB2755
triadic
#AB2797 #97AB27 #2797AB
tetradic
#AB2797 #AB7D27 #27AB3B #2755AB
square
#AB2797 #AB7D27 #27AB3B #2755AB
split-complementary
#AB2797 #55AB27 #27AB7D
monochromatic
#47103F #791C6B #AB2797 #D33DBC #DE6ECD

Accessibility & contrast

On white

6.05
#AB2797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB2797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2797
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2797#FFFFFF#000000##FFFFFF
##AB27971.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569A
Deuteranopia (green-blind)
#586994
Tritanopia (blue-blind)
#B4335D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2797;
/* rgb */ color: rgb(171, 39, 151);
/* oklch */ color: oklch(52.5% 0.203 335.2);
Tailwind
colors: {
  custom: {
    50: '#c870b6',
    500: '#ab2797',
    950: '#000000',
  },
}
SCSS
$custom: #ab2797;
$custom-light: #c870b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2797",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 309.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5249,
    "c": 0.20312,
    "h": 335.2
  },
  "luminance": 0.12343
}

Semantic roles & 50–950 ramp

primary
#AB2797
secondary
#69C577
accent
#E65B42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2797

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

Preview Lab → · Contrast checker → · Palette generator →

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