#A040D9#A040D9

#A040D9 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.226 H 309.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A040D9
RGBrgb(160, 64, 217)
HSLhsl(278, 67%, 55%)
HSVhsv(278, 71%, 85%)
CMYKcmyk(26.3%, 70.5%, 0%, 14.9%)
CIE-LABlab(47.17, 63.74, -61.39)
CIE-LCHlch(47.17, 88.50, 316.08°)
OKLaboklab(57.28% 0.1445 -0.1738)
OKLCHoklch(57.28% 0.226 309.7)
XYZxyz(28.8525, 16.1507, 67.2297)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040D9 #79D940
analogous
#5340D9 #A040D9 #D940C5
triadic
#A040D9 #D9A040 #40D9A0
tetradic
#A040D9 #D95340 #79D940 #40C5D9
square
#A040D9 #D95340 #79D940 #40C5D9
split-complementary
#A040D9 #C5D940 #40D953
monochromatic
#5D1A84 #8124B7 #A040D9 #B973E3 #D3A6ED

Accessibility & contrast

On white

4.96
#A040D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#A040D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040D9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040D9#FFFFFF#000000##FFFFFF
##A040D91.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#2171D6
Tritanopia (blue-blind)
#986288
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a040d9;
/* rgb */ color: rgb(160, 64, 217);
/* oklch */ color: oklch(57.3% 0.226 309.7);
Tailwind
colors: {
  custom: {
    50: '#c17de6',
    500: '#a040d9',
    950: '#000000',
  },
}
SCSS
$custom: #a040d9;
$custom-light: #c17de6;
$custom-dark: #000000;
JSON
{
  "hex": "#a040d9",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 277.647,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57284,
    "c": 0.22605,
    "h": 309.7
  },
  "luminance": 0.1615
}

Semantic roles & 50–950 ramp

primary
#A040D9
secondary
#B2DA9A
accent
#EA3E7E
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A040D9

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

Preview Lab → · Contrast checker → · Palette generator →

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