#A040A5#A040A5

#A040A5 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.0% C 0.177 H 325.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#A040A5
RGBrgb(160, 64, 165)
HSLhsl(297, 44%, 45%)
HSVhsv(297, 61%, 65%)
CMYKcmyk(3%, 61.2%, 0%, 35.3%)
CIE-LABlab(44.03, 53.38, -36.13)
CIE-LCHlch(44.03, 64.45, 325.91°)
OKLaboklab(54.02% 0.1465 -0.1)
OKLCHoklch(54.02% 0.177 325.7)
XYZxyz(23.1216, 13.8584, 37.0471)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A5 #45A540
analogous
#6E40A5 #A040A5 #A54077
triadic
#A040A5 #A5A040 #40A5A0
tetradic
#A040A5 #A56E40 #45A540 #4077A5
square
#A040A5 #A56E40 #45A540 #4077A5
split-complementary
#A040A5 #77A540 #40A56E
monochromatic
#4A1E4D #752F79 #A040A5 #BD61C2 #CF8DD3

Accessibility & contrast

On white

5.57
#A040A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#A040A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A5#FFFFFF#000000##FFFFFF
##A040A51.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#A44E6D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a040a5;
/* rgb */ color: rgb(160, 64, 165);
/* oklch */ color: oklch(54.0% 0.177 325.7);
Tailwind
colors: {
  custom: {
    50: '#bf7bc0',
    500: '#a040a5',
    950: '#000000',
  },
}
SCSS
$custom: #a040a5;
$custom-light: #bf7bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a5",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 297.03,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.17736,
    "h": 325.7
  },
  "luminance": 0.13857
}

Semantic roles & 50–950 ramp

primary
#A040A5
secondary
#86BE83
accent
#D4545A
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #A040A5

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

Preview Lab → · Contrast checker → · Palette generator →

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