#A040A7#A040A7

#A040A7 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.179 H 324.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#A040A7
RGBrgb(160, 64, 167)
HSLhsl(296, 45%, 45%)
HSVhsv(296, 62%, 65%)
CMYKcmyk(4.2%, 61.7%, 0%, 34.5%)
CIE-LABlab(44.13, 53.75, -37.15)
CIE-LCHlch(44.13, 65.34, 325.35°)
OKLaboklab(54.13% 0.1466 -0.1029)
OKLCHoklch(54.13% 0.179 324.9)
XYZxyz(23.3051, 13.9317, 38.0133)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A7 #47A740
analogous
#6C40A7 #A040A7 #A7407B
triadic
#A040A7 #A7A040 #40A7A0
tetradic
#A040A7 #A76C40 #47A740 #407BA7
square
#A040A7 #A76C40 #47A740 #407BA7
split-complementary
#A040A7 #7BA740 #40A76C
monochromatic
#4B1E4F #762F7B #A040A7 #BC62C3 #CF8ED4

Accessibility & contrast

On white

5.55
#A040A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#A040A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A7#FFFFFF#000000##FFFFFF
##A040A71.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#A34F6E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a040a7;
/* rgb */ color: rgb(160, 64, 167);
/* oklch */ color: oklch(54.1% 0.179 324.9);
Tailwind
colors: {
  custom: {
    50: '#bf7bc1',
    500: '#a040a7',
    950: '#000000',
  },
}
SCSS
$custom: #a040a7;
$custom-light: #bf7bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a7",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 295.922,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.17915,
    "h": 324.9
  },
  "luminance": 0.1393
}

Semantic roles & 50–950 ramp

primary
#A040A7
secondary
#88BF84
accent
#D4545C
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #A040A7

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

Preview Lab → · Contrast checker → · Palette generator →

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