#A040AA#A040AA

#A040AA is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.182 H 323.8°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#A040AA
RGBrgb(160, 64, 170)
HSLhsl(294, 45%, 46%)
HSVhsv(294, 62%, 67%)
CMYKcmyk(5.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(44.30, 54.30, -38.67)
CIE-LCHlch(44.30, 66.67, 324.54°)
OKLaboklab(54.3% 0.1468 -0.1073)
OKLCHoklch(54.3% 0.182 323.8)
XYZxyz(23.5856, 14.0440, 39.4909)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040AA #4AAA40
analogous
#6B40AA #A040AA #AA407F
triadic
#A040AA #AAA040 #40AAA0
tetradic
#A040AA #AA6B40 #4AAA40 #407FAA
square
#A040AA #AA6B40 #4AAA40 #407FAA
split-complementary
#A040AA #7FAA40 #40AA6B
monochromatic
#4C1F51 #762F7E #A040AA #BB63C4 #CE8FD5

Accessibility & contrast

On white

5.51
#A040AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#A040AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040AA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040AA#FFFFFF#000000##FFFFFF
##A040AA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AD
Deuteranopia (green-blind)
#516DA7
Tritanopia (blue-blind)
#A3506F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a040aa;
/* rgb */ color: rgb(160, 64, 170);
/* oklch */ color: oklch(54.3% 0.182 323.8);
Tailwind
colors: {
  custom: {
    50: '#bf7bc4',
    500: '#a040aa',
    950: '#000000',
  },
}
SCSS
$custom: #a040aa;
$custom-light: #bf7bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a040aa",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 294.34,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.18185,
    "h": 323.8
  },
  "luminance": 0.14043
}

Semantic roles & 50–950 ramp

primary
#A040AA
secondary
#8BC086
accent
#D5535F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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