#AB40AA#AB40AA

#AB40AA is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.188 H 328.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB40AA
RGBrgb(171, 64, 170)
HSLhsl(301, 46%, 46%)
HSVhsv(301, 63%, 67%)
CMYKcmyk(0%, 62.6%, 0.6%, 32.9%)
CIE-LABlab(45.95, 57.08, -35.96)
CIE-LCHlch(45.95, 67.46, 327.79°)
OKLaboklab(55.83% 0.1594 -0.0992)
OKLCHoklch(55.83% 0.188 328.1)
XYZxyz(25.8833, 15.2287, 39.5986)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40AA #40AB41
analogous
#7640AB #AB40AA #AB4074
triadic
#AB40AA #AAAB40 #40AAAB
tetradic
#AB40AA #AB7640 #40AB41 #4074AB
square
#AB40AA #AB7640 #40AB41 #4074AB
split-complementary
#AB40AA #74AB40 #40AB76
monochromatic
#521F51 #7E2F7E #AB40AA #C563C4 #D590D5

Accessibility & contrast

On white

5.19
#AB40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AB40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40AA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40AA#FFFFFF#000000##FFFFFF
##AB40AA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AD
Deuteranopia (green-blind)
#5A72A7
Tritanopia (blue-blind)
#B04D6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab40aa;
/* rgb */ color: rgb(171, 64, 170);
/* oklch */ color: oklch(55.8% 0.188 328.1);
Tailwind
colors: {
  custom: {
    50: '#c77cc3',
    500: '#ab40aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab40aa;
$custom-light: #c77cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40aa",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 300.561,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55827,
    "c": 0.18777,
    "h": 328.1
  },
  "luminance": 0.15227
}

Semantic roles & 50–950 ramp

primary
#AB40AA
secondary
#86C187
accent
#D55453
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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