#AB279E#AB279E

#AB279E is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.208 H 332.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AB279E
RGBrgb(171, 39, 158)
HSLhsl(306, 63%, 41%)
HSVhsv(306, 77%, 67%)
CMYKcmyk(0%, 77.2%, 7.6%, 32.9%)
CIE-LABlab(42.12, 64.14, -34.83)
CIE-LCHlch(42.12, 72.99, 331.49°)
OKLaboklab(52.87% 0.1847 -0.0958)
OKLCHoklch(52.87% 0.208 332.6)
XYZxyz(23.6918, 12.5796, 33.5214)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB279E #27AB34
analogous
#7627AB #AB279E #AB275C
triadic
#AB279E #9EAB27 #279EAB
tetradic
#AB279E #AB7627 #27AB34 #275CAB
square
#AB279E #AB7627 #27AB34 #275CAB
split-complementary
#AB279E #5CAB27 #27AB76
monochromatic
#471042 #791C70 #AB279E #D33DC4 #DE6ED3

Accessibility & contrast

On white

5.97
#AB279E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB279E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB279E
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB279E#FFFFFF#000000##FFFFFF
##AB279E1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E58A1
Deuteranopia (green-blind)
#546A9B
Tritanopia (blue-blind)
#B33661
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab279e;
/* rgb */ color: rgb(171, 39, 158);
/* oklch */ color: oklch(52.9% 0.208 332.6);
Tailwind
colors: {
  custom: {
    50: '#c871bb',
    500: '#ab279e',
    950: '#000000',
  },
}
SCSS
$custom: #ab279e;
$custom-light: #c871bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab279e",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 305.909,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52868,
    "c": 0.20808,
    "h": 332.6
  },
  "luminance": 0.12578
}

Semantic roles & 50–950 ramp

primary
#AB279E
secondary
#69C572
accent
#E65242
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB279E

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

Preview Lab → · Contrast checker → · Palette generator →

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