#A040A1#A040A1

#A040A1 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.8% C 0.174 H 327.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#A040A1
RGBrgb(160, 64, 161)
HSLhsl(299, 43%, 44%)
HSVhsv(299, 60%, 63%)
CMYKcmyk(0.6%, 60.2%, 0%, 36.9%)
CIE-LABlab(43.82, 52.65, -34.07)
CIE-LCHlch(43.82, 62.72, 327.09°)
OKLaboklab(53.8% 0.1462 -0.094)
OKLCHoklch(53.8% 0.174 327.3)
XYZxyz(22.7633, 13.7150, 35.1596)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A1 #41A140
analogous
#7040A1 #A040A1 #A14072
triadic
#A040A1 #A1A040 #40A1A0
tetradic
#A040A1 #A17040 #41A140 #4072A1
square
#A040A1 #A17040 #41A140 #4072A1
split-complementary
#A040A1 #72A140 #40A170
monochromatic
#491D49 #742F75 #A040A1 #BE5FBF #D08BD1

Accessibility & contrast

On white

5.61
#A040A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#A040A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A1
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A1#FFFFFF#000000##FFFFFF
##A040A11.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#A44C6A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a040a1;
/* rgb */ color: rgb(160, 64, 161);
/* oklch */ color: oklch(53.8% 0.174 327.3);
Tailwind
colors: {
  custom: {
    50: '#bf7bbd',
    500: '#a040a1',
    950: '#000000',
  },
}
SCSS
$custom: #a040a1;
$custom-light: #bf7bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a1",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 299.381,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.17381,
    "h": 327.3
  },
  "luminance": 0.13714
}

Semantic roles & 50–950 ramp

primary
#A040A1
secondary
#82BC81
accent
#D35556
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #A040A1

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

Preview Lab → · Contrast checker → · Palette generator →

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