#A040C0#A040C0

#A040C0 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.6% C 0.202 H 316.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A040C0
RGBrgb(160, 64, 192)
HSLhsl(285, 50%, 50%)
HSVhsv(285, 67%, 75%)
CMYKcmyk(16.7%, 66.7%, 0%, 24.7%)
CIE-LABlab(45.56, 58.57, -49.57)
CIE-LCHlch(45.56, 76.73, 319.76°)
OKLaboklab(55.62% 0.1468 -0.1391)
OKLCHoklch(55.62% 0.202 316.5)
XYZxyz(25.8436, 14.9471, 51.3827)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C0 #60C040
analogous
#6040C0 #A040C0 #C040A0
triadic
#A040C0 #C0A040 #40C0A0
tetradic
#A040C0 #C06040 #60C040 #40A0C0
square
#A040C0 #C06040 #60C040 #40A0C0
split-complementary
#A040C0 #A0C040 #40C060
monochromatic
#542164 #7A3092 #A040C0 #B76ECF #CE9CDE

Accessibility & contrast

On white

5.26
#A040C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A040C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C0
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C0#FFFFFF#000000##FFFFFF
##A040C01.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#416FBD
Tritanopia (blue-blind)
#9E587B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a040c0;
/* rgb */ color: rgb(160, 64, 192);
/* oklch */ color: oklch(55.6% 0.202 316.5);
Tailwind
colors: {
  custom: {
    50: '#c07cd4',
    500: '#a040c0',
    950: '#000000',
  },
}
SCSS
$custom: #a040c0;
$custom-light: #c07cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c0",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 285,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.20224,
    "h": 316.5
  },
  "luminance": 0.14946
}

Semantic roles & 50–950 ramp

primary
#A040C0
secondary
#A0CB91
accent
#DA4E71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A040C0

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

Preview Lab → · Contrast checker → · Palette generator →

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