#AB40A3#AB40A3

#AB40A3 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.5% C 0.182 H 330.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AB40A3
RGBrgb(171, 64, 163)
HSLhsl(304, 46%, 46%)
HSVhsv(304, 63%, 67%)
CMYKcmyk(0%, 62.6%, 4.7%, 32.9%)
CIE-LABlab(45.59, 55.88, -32.36)
CIE-LCHlch(45.59, 64.58, 329.93°)
OKLaboklab(55.46% 0.1588 -0.0888)
OKLCHoklch(55.46% 0.182 330.8)
XYZxyz(25.2387, 14.9709, 36.2036)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40A3 #40AB48
analogous
#7D40AB #AB40A3 #AB406D
triadic
#AB40A3 #A3AB40 #40A3AB
tetradic
#AB40A3 #AB7D40 #40AB48 #406DAB
square
#AB40A3 #AB7D40 #40AB48 #406DAB
split-complementary
#AB40A3 #6DAB40 #40AB7D
monochromatic
#521F4E #7E2F79 #AB40A3 #C563BD #D590D0

Accessibility & contrast

On white

5.26
#AB40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AB40A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40A3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40A3#FFFFFF#000000##FFFFFF
##AB40A31.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A6
Deuteranopia (green-blind)
#5D71A0
Tritanopia (blue-blind)
#B14B6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab40a3;
/* rgb */ color: rgb(171, 64, 163);
/* oklch */ color: oklch(55.5% 0.182 330.8);
Tailwind
colors: {
  custom: {
    50: '#c77cbe',
    500: '#ab40a3',
    950: '#000000',
  },
}
SCSS
$custom: #ab40a3;
$custom-light: #c77cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40a3",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 304.486,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55457,
    "c": 0.18196,
    "h": 330.8
  },
  "luminance": 0.14969
}

Semantic roles & 50–950 ramp

primary
#AB40A3
secondary
#86C18B
accent
#D55C53
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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