#A040C7#A040C7

#A040C7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.209 H 314.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A040C7
RGBrgb(160, 64, 199)
HSLhsl(283, 55%, 52%)
HSVhsv(283, 68%, 78%)
CMYKcmyk(19.6%, 67.8%, 0%, 22%)
CIE-LABlab(45.99, 59.99, -52.94)
CIE-LCHlch(45.99, 80.01, 318.57°)
OKLaboklab(56.07% 0.1464 -0.149)
OKLCHoklch(56.07% 0.209 314.5)
XYZxyz(26.6377, 15.2648, 55.5650)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040C7 #67C740
analogous
#5D40C7 #A040C7 #C740AA
triadic
#A040C7 #C7A040 #40C7A0
tetradic
#A040C7 #C75D40 #67C740 #40AAC7
square
#A040C7 #C75D40 #67C740 #40AAC7
split-complementary
#A040C7 #AAC740 #40C75D
monochromatic
#57206D #7C2E9C #A040C7 #B86FD5 #CF9FE3

Accessibility & contrast

On white

5.18
#A040C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A040C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040C7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040C7#FFFFFF#000000##FFFFFF
##A040C71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#3B6FC4
Tritanopia (blue-blind)
#9D5B7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a040c7;
/* rgb */ color: rgb(160, 64, 199);
/* oklch */ color: oklch(56.1% 0.209 314.5);
Tailwind
colors: {
  custom: {
    50: '#c07cd9',
    500: '#a040c7',
    950: '#000000',
  },
}
SCSS
$custom: #a040c7;
$custom-light: #c07cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a040c7",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 282.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.20887,
    "h": 314.5
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#A040C7
secondary
#A5CF94
accent
#DE4A75
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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