#A040C4#A040C4

#A040C4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.206 H 315.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A040C4
RGBrgb(160, 64, 196)
HSLhsl(284, 53%, 51%)
HSVhsv(284, 67%, 77%)
CMYKcmyk(18.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(45.81, 59.38, -51.50)
CIE-LCHlch(45.81, 78.60, 319.06°)
OKLaboklab(55.88% 0.1466 -0.1448)
OKLCHoklch(55.88% 0.206 315.3)
XYZxyz(26.2928, 15.1268, 53.7486)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C4 #64C440
analogous
#5E40C4 #A040C4 #C440A6
triadic
#A040C4 #C4A040 #40C4A0
tetradic
#A040C4 #C45E40 #64C440 #40A6C4
square
#A040C4 #C45E40 #64C440 #40A6C4
split-complementary
#A040C4 #A6C440 #40C45E
monochromatic
#552069 #7B2F98 #A040C4 #B76FD2 #CF9EE1

Accessibility & contrast

On white

5.22
#A040C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A040C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C4#FFFFFF#000000##FFFFFF
##A040C41.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#3D6FC1
Tritanopia (blue-blind)
#9D5A7D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040c4;
/* rgb */ color: rgb(160, 64, 196);
/* oklch */ color: oklch(55.9% 0.206 315.3);
Tailwind
colors: {
  custom: {
    50: '#c07cd6',
    500: '#a040c4',
    950: '#000000',
  },
}
SCSS
$custom: #a040c4;
$custom-light: #c07cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c4",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 283.636,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55875,
    "c": 0.20602,
    "h": 315.3
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#A040C4
secondary
#A3CD93
accent
#DC4C73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C4

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

Preview Lab → · Contrast checker → · Palette generator →

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