#AB2798#AB2798

#AB2798 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.5% C 0.204 H 334.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AB2798
RGBrgb(171, 39, 152)
HSLhsl(309, 63%, 41%)
HSVhsv(309, 77%, 67%)
CMYKcmyk(0%, 77.2%, 11.1%, 32.9%)
CIE-LABlab(41.81, 63.24, -31.71)
CIE-LCHlch(41.81, 70.74, 333.37°)
OKLaboklab(52.54% 0.1844 -0.0868)
OKLCHoklch(52.54% 0.204 334.8)
XYZxyz(23.1879, 12.3781, 30.8677)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2798 #27AB3A
analogous
#7C27AB #AB2798 #AB2756
triadic
#AB2798 #98AB27 #2798AB
tetradic
#AB2798 #AB7C27 #27AB3A #2756AB
square
#AB2798 #AB7C27 #27AB3A #2756AB
split-complementary
#AB2798 #56AB27 #27AB7C
monochromatic
#47103F #791C6C #AB2798 #D33DBD #DE6ECE

Accessibility & contrast

On white

6.04
#AB2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2798
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2798#FFFFFF#000000##FFFFFF
##AB27981.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569B
Deuteranopia (green-blind)
#576995
Tritanopia (blue-blind)
#B4335E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2798;
/* rgb */ color: rgb(171, 39, 152);
/* oklch */ color: oklch(52.5% 0.204 334.8);
Tailwind
colors: {
  custom: {
    50: '#c870b6',
    500: '#ab2798',
    950: '#000000',
  },
}
SCSS
$custom: #ab2798;
$custom-light: #c870b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2798",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 308.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.20382,
    "h": 334.8
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#AB2798
secondary
#69C576
accent
#E65942
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AB2798

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

Preview Lab → · Contrast checker → · Palette generator →

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