#A040CC#A040CC

#A040CC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.214 H 313.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A040CC
RGBrgb(160, 64, 204)
HSLhsl(281, 58%, 53%)
HSVhsv(281, 69%, 80%)
CMYKcmyk(21.6%, 68.6%, 0%, 20%)
CIE-LABlab(46.31, 61.02, -55.31)
CIE-LCHlch(46.31, 82.36, 317.81°)
OKLaboklab(56.4% 0.146 -0.156)
OKLCHoklch(56.4% 0.214 313.1)
XYZxyz(27.2278, 15.5008, 58.6727)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040CC #6CCC40
analogous
#5A40CC #A040CC #CC40B2
triadic
#A040CC #CCA040 #40CCA0
tetradic
#A040CC #CC5A40 #6CCC40 #40B2CC
square
#A040CC #CC5A40 #6CCC40 #40B2CC
split-complementary
#A040CC #B2CC40 #40CC5A
monochromatic
#581F73 #7E2CA3 #A040CC #B870D9 #D0A1E6

Accessibility & contrast

On white

5.12
#A040CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A040CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040CC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040CC#FFFFFF#000000##FFFFFF
##A040CC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#3570C9
Tritanopia (blue-blind)
#9B5D81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a040cc;
/* rgb */ color: rgb(160, 64, 204);
/* oklch */ color: oklch(56.4% 0.214 313.1);
Tailwind
colors: {
  custom: {
    50: '#c07cdc',
    500: '#a040cc',
    950: '#000000',
  },
}
SCSS
$custom: #a040cc;
$custom-light: #c07cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a040cc",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 281.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56398,
    "c": 0.21362,
    "h": 313.1
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#A040CC
secondary
#A9D295
accent
#E14777
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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