#A040D2#A040D2

#A040D2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.219 H 311.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A040D2
RGBrgb(160, 64, 210)
HSLhsl(279, 62%, 54%)
HSVhsv(279, 70%, 82%)
CMYKcmyk(23.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(46.70, 62.27, -58.14)
CIE-LCHlch(46.70, 85.19, 316.96°)
OKLaboklab(56.8% 0.1454 -0.1643)
OKLCHoklch(56.8% 0.219 311.5)
XYZxyz(27.9613, 15.7942, 62.5359)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040D2 #72D240
analogous
#5740D2 #A040D2 #D240BB
triadic
#A040D2 #D2A040 #40D2A0
tetradic
#A040D2 #D25740 #72D240 #40BBD2
square
#A040D2 #D25740 #72D240 #40BBD2
split-complementary
#A040D2 #BBD240 #40D257
monochromatic
#5B1D7B #7F29AC #A040D2 #B972DE #D1A3E9

Accessibility & contrast

On white

5.05
#A040D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A040D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040D2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040D2#FFFFFF#000000##FFFFFF
##A040D21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#2D70CF
Tritanopia (blue-blind)
#9A5F85
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a040d2;
/* rgb */ color: rgb(160, 64, 210);
/* oklch */ color: oklch(56.8% 0.219 311.5);
Tailwind
colors: {
  custom: {
    50: '#c07de1',
    500: '#a040d2',
    950: '#000000',
  },
}
SCSS
$custom: #a040d2;
$custom-light: #c07de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a040d2",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 279.452,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56801,
    "c": 0.21935,
    "h": 311.5
  },
  "luminance": 0.15794
}

Semantic roles & 50–950 ramp

primary
#A040D2
secondary
#ADD698
accent
#E5437A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A040D2

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

Preview Lab → · Contrast checker → · Palette generator →

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