#AB40BA#AB40BA

#AB40BA is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.7% C 0.202 H 322.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB40BA
RGBrgb(171, 64, 186)
HSLhsl(293, 49%, 49%)
HSVhsv(293, 66%, 73%)
CMYKcmyk(8.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(46.81, 59.95, -43.99)
CIE-LCHlch(46.81, 74.36, 323.73°)
OKLaboklab(56.73% 0.16 -0.1225)
OKLCHoklch(56.73% 0.202 322.6)
XYZxyz(27.4900, 15.8714, 48.0604)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40BA #4FBA40
analogous
#6E40BA #AB40BA #BA408C
triadic
#AB40BA #BAAB40 #40BAAB
tetradic
#AB40BA #BA6E40 #4FBA40 #408CBA
square
#AB40BA #BA6E40 #4FBA40 #408CBA
split-complementary
#AB40BA #8CBA40 #40BA6E
monochromatic
#57215F #81308C #AB40BA #C06BCC #D499DC

Accessibility & contrast

On white

5.03
#AB40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AB40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40BA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40BA#FFFFFF#000000##FFFFFF
##AB40BA1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#5173B7
Tritanopia (blue-blind)
#AD5478
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab40ba;
/* rgb */ color: rgb(171, 64, 186);
/* oklch */ color: oklch(56.7% 0.202 322.6);
Tailwind
colors: {
  custom: {
    50: '#c77dcf',
    500: '#ab40ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ba;
$custom-light: #c77dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ba",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 292.623,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56727,
    "c": 0.20157,
    "h": 322.6
  },
  "luminance": 0.1587
}

Semantic roles & 50–950 ramp

primary
#AB40BA
secondary
#95C88E
accent
#D84F60
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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