#A040A2#A040A2

#A040A2 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.9% C 0.175 H 326.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#A040A2
RGBrgb(160, 64, 162)
HSLhsl(299, 43%, 44%)
HSVhsv(299, 60%, 64%)
CMYKcmyk(1.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(43.87, 52.83, -34.59)
CIE-LCHlch(43.87, 63.15, 326.79°)
OKLaboklab(53.85% 0.1463 -0.0955)
OKLCHoklch(53.85% 0.175 326.9)
XYZxyz(22.8518, 13.7504, 35.6259)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A2 #42A240
analogous
#6F40A2 #A040A2 #A24073
triadic
#A040A2 #A2A040 #40A2A0
tetradic
#A040A2 #A26F40 #42A240 #4073A2
square
#A040A2 #A26F40 #42A240 #4073A2
split-complementary
#A040A2 #73A240 #40A26F
monochromatic
#491D4A #752F76 #A040A2 #BE5FC0 #D08BD1

Accessibility & contrast

On white

5.60
#A040A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#A040A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A2#FFFFFF#000000##FFFFFF
##A040A21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#A44D6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a040a2;
/* rgb */ color: rgb(160, 64, 162);
/* oklch */ color: oklch(53.9% 0.175 326.9);
Tailwind
colors: {
  custom: {
    50: '#bf7bbe',
    500: '#a040a2',
    950: '#000000',
  },
}
SCSS
$custom: #a040a2;
$custom-light: #bf7bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a2",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 298.776,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53853,
    "c": 0.17469,
    "h": 326.9
  },
  "luminance": 0.13749
}

Semantic roles & 50–950 ramp

primary
#A040A2
secondary
#83BC82
accent
#D35557
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #A040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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