#AB279F#AB279F

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

Color values

HEX#AB279F
RGBrgb(171, 39, 159)
HSLhsl(305, 63%, 41%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 77.2%, 7%, 32.9%)
CIE-LABlab(42.18, 64.29, -35.35)
CIE-LCHlch(42.18, 73.37, 331.20°)
OKLaboklab(52.92% 0.1848 -0.0973)
OKLCHoklch(52.92% 0.209 332.2)
XYZxyz(23.7782, 12.6142, 33.9766)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB279F #27AB33
analogous
#7527AB #AB279F #AB275D
triadic
#AB279F #9FAB27 #279FAB
tetradic
#AB279F #AB7527 #27AB33 #275DAB
square
#AB279F #AB7527 #27AB33 #275DAB
split-complementary
#AB279F #5DAB27 #27AB75
monochromatic
#471042 #791C71 #AB279F #D33DC5 #DE6ED4

Accessibility & contrast

On white

5.96
#AB279F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB279F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB279F#FFFFFF#000000##FFFFFF
##AB279F1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D58A2
Deuteranopia (green-blind)
#546A9C
Tritanopia (blue-blind)
#B23762
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab279f;
/* rgb */ color: rgb(171, 39, 159);
/* oklch */ color: oklch(52.9% 0.209 332.2);
Tailwind
colors: {
  custom: {
    50: '#c871bc',
    500: '#ab279f',
    950: '#000000',
  },
}
SCSS
$custom: #ab279f;
$custom-light: #c871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab279f",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 305.455,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.20879,
    "h": 332.2
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#AB279F
secondary
#69C571
accent
#E65142
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB279F

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

Preview Lab → · Contrast checker → · Palette generator →

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