#A040A0#A040A0

#A040A0 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.7% C 0.173 H 327.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#A040A0
RGBrgb(160, 64, 160)
HSLhsl(300, 43%, 44%)
HSVhsv(300, 60%, 63%)
CMYKcmyk(0%, 60%, 0%, 37.3%)
CIE-LABlab(43.77, 52.47, -33.55)
CIE-LCHlch(43.77, 62.29, 327.40°)
OKLaboklab(53.75% 0.1461 -0.0925)
OKLCHoklch(53.75% 0.173 327.7)
XYZxyz(22.6754, 13.6799, 34.6970)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040A0 #40A040
analogous
#7040A0 #A040A0 #A04070
triadic
#A040A0 #A0A040 #40A0A0
tetradic
#A040A0 #A07040 #40A040 #4070A0
square
#A040A0 #A07040 #40A040 #4070A0
split-complementary
#A040A0 #70A040 #40A070
monochromatic
#491D49 #742F74 #A040A0 #BF5EBF #D08AD0

Accessibility & contrast

On white

5.62
#A040A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#A040A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040A0
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040A0#FFFFFF#000000##FFFFFF
##A040A01.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355FA3
Deuteranopia (green-blind)
#566C9D
Tritanopia (blue-blind)
#A54C6A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a040a0;
/* rgb */ color: rgb(160, 64, 160);
/* oklch */ color: oklch(53.7% 0.173 327.7);
Tailwind
colors: {
  custom: {
    50: '#bf7bbc',
    500: '#a040a0',
    950: '#000000',
  },
}
SCSS
$custom: #a040a0;
$custom-light: #bf7bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#a040a0",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 300,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53745,
    "c": 0.17294,
    "h": 327.7
  },
  "luminance": 0.13678
}

Semantic roles & 50–950 ramp

primary
#A040A0
secondary
#81BB81
accent
#D35555
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#120A12
muted
#817C81

Preview Lab

Preview with #A040A0

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

Preview Lab → · Contrast checker → · Palette generator →

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