#A040C9#A040C9

#A040C9 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.211 H 313.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#A040C9
RGBrgb(160, 64, 201)
HSLhsl(282, 56%, 52%)
HSVhsv(282, 68%, 79%)
CMYKcmyk(20.4%, 68.2%, 0%, 21.2%)
CIE-LABlab(46.12, 60.40, -53.89)
CIE-LCHlch(46.12, 80.95, 318.26°)
OKLaboklab(56.2% 0.1462 -0.1518)
OKLCHoklch(56.2% 0.211 313.9)
XYZxyz(26.8714, 15.3583, 56.7960)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C9 #69C940
analogous
#5C40C9 #A040C9 #C940AD
triadic
#A040C9 #C9A040 #40C9A0
tetradic
#A040C9 #C95C40 #69C940 #40ADC9
square
#A040C9 #C95C40 #69C940 #40ADC9
split-complementary
#A040C9 #ADC940 #40C95C
monochromatic
#571F6F #7D2D9F #A040C9 #B870D6 #CF9FE4

Accessibility & contrast

On white

5.16
#A040C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#A040C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C9#FFFFFF#000000##FFFFFF
##A040C91.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#3870C6
Tritanopia (blue-blind)
#9C5C80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a040c9;
/* rgb */ color: rgb(160, 64, 201);
/* oklch */ color: oklch(56.2% 0.211 313.9);
Tailwind
colors: {
  custom: {
    50: '#c07cda',
    500: '#a040c9',
    950: '#000000',
  },
}
SCSS
$custom: #a040c9;
$custom-light: #c07cda;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c9",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 282.044,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.562,
    "c": 0.21077,
    "h": 313.9
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

primary
#A040C9
secondary
#A6D094
accent
#DF4976
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040C9

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

Preview Lab → · Contrast checker → · Palette generator →

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