#A040D0#A040D0

#A040D0 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.217 H 312.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A040D0
RGBrgb(160, 64, 208)
HSLhsl(280, 61%, 53%)
HSVhsv(280, 69%, 82%)
CMYKcmyk(23.1%, 69.2%, 0%, 18.4%)
CIE-LABlab(46.57, 61.85, -57.20)
CIE-LCHlch(46.57, 84.24, 317.24°)
OKLaboklab(56.67% 0.1456 -0.1615)
OKLCHoklch(56.67% 0.217 312)
XYZxyz(27.7137, 15.6952, 61.2318)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040D0 #70D040
analogous
#5840D0 #A040D0 #D040B8
triadic
#A040D0 #D0A040 #40D0A0
tetradic
#A040D0 #D05840 #70D040 #40B8D0
square
#A040D0 #D05840 #70D040 #40B8D0
split-complementary
#A040D0 #B8D040 #40D058
monochromatic
#5A1E78 #7F2AA9 #A040D0 #B871DC #D1A2E8

Accessibility & contrast

On white

5.07
#A040D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A040D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040D0
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040D0#FFFFFF#000000##FFFFFF
##A040D01.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#3070CD
Tritanopia (blue-blind)
#9A5F83
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a040d0;
/* rgb */ color: rgb(160, 64, 208);
/* oklch */ color: oklch(56.7% 0.217 312.0);
Tailwind
colors: {
  custom: {
    50: '#c07cdf',
    500: '#a040d0',
    950: '#000000',
  },
}
SCSS
$custom: #a040d0;
$custom-light: #c07cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#a040d0",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 280,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56666,
    "c": 0.21744,
    "h": 312
  },
  "luminance": 0.15694
}

Semantic roles & 50–950 ramp

primary
#A040D0
secondary
#ACD597
accent
#E44479
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040D0

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

Preview Lab → · Contrast checker → · Palette generator →

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