#AB279A#AB279A

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

Color values

HEX#AB279A
RGBrgb(171, 39, 154)
HSLhsl(308, 63%, 41%)
HSVhsv(308, 77%, 67%)
CMYKcmyk(0%, 77.2%, 9.9%, 32.9%)
CIE-LABlab(41.91, 63.54, -32.76)
CIE-LCHlch(41.91, 71.48, 332.73°)
OKLaboklab(52.65% 0.1845 -0.0898)
OKLCHoklch(52.65% 0.205 334.1)
XYZxyz(23.3531, 12.4441, 31.7376)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB279A #27AB38
analogous
#7A27AB #AB279A #AB2758
triadic
#AB279A #9AAB27 #279AAB
tetradic
#AB279A #AB7A27 #27AB38 #2758AB
square
#AB279A #AB7A27 #27AB38 #2758AB
split-complementary
#AB279A #58AB27 #27AB7A
monochromatic
#471040 #791C6D #AB279A #D33DBF #DE6ED0

Accessibility & contrast

On white

6.02
#AB279A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AB279A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB279A
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB279A#FFFFFF#000000##FFFFFF
##AB279A1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579D
Deuteranopia (green-blind)
#566A97
Tritanopia (blue-blind)
#B3345F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab279a;
/* rgb */ color: rgb(171, 39, 154);
/* oklch */ color: oklch(52.6% 0.205 334.1);
Tailwind
colors: {
  custom: {
    50: '#c870b8',
    500: '#ab279a',
    950: '#000000',
  },
}
SCSS
$custom: #ab279a;
$custom-light: #c870b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab279a",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 307.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5265,
    "c": 0.20522,
    "h": 334.1
  },
  "luminance": 0.12442
}

Semantic roles & 50–950 ramp

primary
#AB279A
secondary
#69C575
accent
#E65742
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB279A

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

Preview Lab → · Contrast checker → · Palette generator →

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