#A040A9#A040A9

#A040A9 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.2% C 0.181 H 324.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#A040A9
RGBrgb(160, 64, 169)
HSLhsl(295, 45%, 46%)
HSVhsv(295, 62%, 66%)
CMYKcmyk(5.3%, 62.1%, 0%, 33.7%)
CIE-LABlab(44.24, 54.12, -38.16)
CIE-LCHlch(44.24, 66.22, 324.81°)
OKLaboklab(54.24% 0.1467 -0.1059)
OKLCHoklch(54.24% 0.181 324.2)
XYZxyz(23.4914, 14.0063, 38.9946)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A9 #49A940
analogous
#6B40A9 #A040A9 #A9407D
triadic
#A040A9 #A9A040 #40A9A0
tetradic
#A040A9 #A96B40 #49A940 #407DA9
square
#A040A9 #A96B40 #49A940 #407DA9
split-complementary
#A040A9 #7DA940 #40A96B
monochromatic
#4C1E50 #762F7D #A040A9 #BB62C4 #CF8FD5

Accessibility & contrast

On white

5.52
#A040A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#A040A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A9
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A9#FFFFFF#000000##FFFFFF
##A040A91.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AC
Deuteranopia (green-blind)
#516DA6
Tritanopia (blue-blind)
#A34F6F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a040a9;
/* rgb */ color: rgb(160, 64, 169);
/* oklch */ color: oklch(54.2% 0.181 324.2);
Tailwind
colors: {
  custom: {
    50: '#bf7bc3',
    500: '#a040a9',
    950: '#000000',
  },
}
SCSS
$custom: #a040a9;
$custom-light: #bf7bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a9",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 294.857,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54241,
    "c": 0.18095,
    "h": 324.2
  },
  "luminance": 0.14005
}

Semantic roles & 50–950 ramp

primary
#A040A9
secondary
#8AC085
accent
#D5535E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A040A9

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

Preview Lab → · Contrast checker → · Palette generator →

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