#A040D3#A040D3

#A040D3 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.220 H 311.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A040D3
RGBrgb(160, 64, 211)
HSLhsl(279, 63%, 54%)
HSVhsv(279, 70%, 83%)
CMYKcmyk(24.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(46.77, 62.48, -58.60)
CIE-LCHlch(46.77, 85.66, 316.83°)
OKLaboklab(56.87% 0.1453 -0.1656)
OKLCHoklch(56.87% 0.22 311.2)
XYZxyz(28.0863, 15.8442, 63.1941)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040D3 #73D340
analogous
#5740D3 #A040D3 #D340BC
triadic
#A040D3 #D3A040 #40D3A0
tetradic
#A040D3 #D35740 #73D340 #40BCD3
square
#A040D3 #D35740 #73D340 #40BCD3
split-complementary
#A040D3 #BCD340 #40D357
monochromatic
#5B1D7C #7F28AE #A040D3 #B972DE #D1A3EA

Accessibility & contrast

On white

5.04
#A040D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A040D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040D3
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040D3#FFFFFF#000000##FFFFFF
##A040D31.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#2C71D0
Tritanopia (blue-blind)
#9A6085
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a040d3;
/* rgb */ color: rgb(160, 64, 211);
/* oklch */ color: oklch(56.9% 0.220 311.2);
Tailwind
colors: {
  custom: {
    50: '#c07de1',
    500: '#a040d3',
    950: '#000000',
  },
}
SCSS
$custom: #a040d3;
$custom-light: #c07de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a040d3",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 279.184,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5687,
    "c": 0.2203,
    "h": 311.2
  },
  "luminance": 0.15844
}

Semantic roles & 50–950 ramp

primary
#A040D3
secondary
#AED798
accent
#E6427B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040D3

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

Preview Lab → · Contrast checker → · Palette generator →

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