#AB2799#AB2799

#AB2799 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.205 H 334.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AB2799
RGBrgb(171, 39, 153)
HSLhsl(308, 63%, 41%)
HSVhsv(308, 77%, 67%)
CMYKcmyk(0%, 77.2%, 10.5%, 32.9%)
CIE-LABlab(41.86, 63.39, -32.23)
CIE-LCHlch(41.86, 71.11, 333.05°)
OKLaboklab(52.6% 0.1845 -0.0883)
OKLCHoklch(52.6% 0.205 334.4)
XYZxyz(23.2701, 12.4109, 31.3008)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2799 #27AB39
analogous
#7B27AB #AB2799 #AB2757
triadic
#AB2799 #99AB27 #2799AB
tetradic
#AB2799 #AB7B27 #27AB39 #2757AB
square
#AB2799 #AB7B27 #27AB39 #2757AB
split-complementary
#AB2799 #57AB27 #27AB7B
monochromatic
#471040 #791C6C #AB2799 #D33DBE #DE6ECF

Accessibility & contrast

On white

6.03
#AB2799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2799
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2799#FFFFFF#000000##FFFFFF
##AB27991.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579C
Deuteranopia (green-blind)
#576A96
Tritanopia (blue-blind)
#B3345E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2799;
/* rgb */ color: rgb(171, 39, 153);
/* oklch */ color: oklch(52.6% 0.205 334.4);
Tailwind
colors: {
  custom: {
    50: '#c870b7',
    500: '#ab2799',
    950: '#000000',
  },
}
SCSS
$custom: #ab2799;
$custom-light: #c870b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2799",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 308.182,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52596,
    "c": 0.20452,
    "h": 334.4
  },
  "luminance": 0.12409
}

Semantic roles & 50–950 ramp

primary
#AB2799
secondary
#69C576
accent
#E65842
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2799

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

Preview Lab → · Contrast checker → · Palette generator →

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