#A040CD#A040CD

#A040CD is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.215 H 312.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A040CD
RGBrgb(160, 64, 205)
HSLhsl(281, 59%, 53%)
HSVhsv(281, 69%, 80%)
CMYKcmyk(22%, 68.8%, 0%, 19.6%)
CIE-LABlab(46.38, 61.22, -55.79)
CIE-LCHlch(46.38, 82.83, 317.66°)
OKLaboklab(56.47% 0.1459 -0.1574)
OKLCHoklch(56.47% 0.215 312.8)
XYZxyz(27.3481, 15.5489, 59.3064)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040CD #6DCD40
analogous
#5940CD #A040CD #CD40B3
triadic
#A040CD #CDA040 #40CDA0
tetradic
#A040CD #CD5940 #6DCD40 #40B3CD
square
#A040CD #CD5940 #6DCD40 #40B3CD
split-complementary
#A040CD #B3CD40 #40CD59
monochromatic
#591E74 #7E2BA5 #A040CD #B871DA #D0A1E6

Accessibility & contrast

On white

5.11
#A040CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#A040CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040CD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040CD#FFFFFF#000000##FFFFFF
##A040CD1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#3470CA
Tritanopia (blue-blind)
#9B5D82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a040cd;
/* rgb */ color: rgb(160, 64, 205);
/* oklch */ color: oklch(56.5% 0.215 312.8);
Tailwind
colors: {
  custom: {
    50: '#c07cdd',
    500: '#a040cd',
    950: '#000000',
  },
}
SCSS
$custom: #a040cd;
$custom-light: #c07cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#a040cd",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 280.851,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56465,
    "c": 0.21458,
    "h": 312.8
  },
  "luminance": 0.15548
}

Semantic roles & 50–950 ramp

primary
#A040CD
secondary
#A9D396
accent
#E24678
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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