#AB279D#AB279D

#AB279D is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.207 H 333.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AB279D
RGBrgb(171, 39, 157)
HSLhsl(306, 63%, 41%)
HSVhsv(306, 77%, 67%)
CMYKcmyk(0%, 77.2%, 8.2%, 32.9%)
CIE-LABlab(42.07, 63.99, -34.32)
CIE-LCHlch(42.07, 72.61, 331.80°)
OKLaboklab(52.81% 0.1847 -0.0943)
OKLCHoklch(52.81% 0.207 333)
XYZxyz(23.6060, 12.5453, 33.0700)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB279D #27AB35
analogous
#7727AB #AB279D #AB275B
triadic
#AB279D #9DAB27 #279DAB
tetradic
#AB279D #AB7727 #27AB35 #275BAB
square
#AB279D #AB7727 #27AB35 #275BAB
split-complementary
#AB279D #5BAB27 #27AB77
monochromatic
#471041 #791C6F #AB279D #D33DC3 #DE6ED2

Accessibility & contrast

On white

5.99
#AB279D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AB279D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB279D
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB279D#FFFFFF#000000##FFFFFF
##AB279D1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2057A0
Deuteranopia (green-blind)
#556A9A
Tritanopia (blue-blind)
#B33661
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab279d;
/* rgb */ color: rgb(171, 39, 157);
/* oklch */ color: oklch(52.8% 0.207 333.0);
Tailwind
colors: {
  custom: {
    50: '#c871ba',
    500: '#ab279d',
    950: '#000000',
  },
}
SCSS
$custom: #ab279d;
$custom-light: #c871ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab279d",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 306.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52813,
    "c": 0.20735,
    "h": 333
  },
  "luminance": 0.12543
}

Semantic roles & 50–950 ramp

primary
#AB279D
secondary
#69C573
accent
#E65342
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB279D

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

Preview Lab → · Contrast checker → · Palette generator →

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