#A040DF#A040DF

#A040DF is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.7% C 0.232 H 308.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A040DF
RGBrgb(160, 64, 223)
HSLhsl(276, 71%, 56%)
HSVhsv(276, 71%, 87%)
CMYKcmyk(28.3%, 71.3%, 0%, 12.5%)
CIE-LABlab(47.58, 65.03, -64.14)
CIE-LCHlch(47.58, 91.34, 315.39°)
OKLaboklab(57.71% 0.1437 -0.1819)
OKLCHoklch(57.71% 0.232 308.3)
XYZxyz(29.6471, 16.4686, 71.4147)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040DF #7FDF40
analogous
#5140DF #A040DF #DF40CF
triadic
#A040DF #DFA040 #40DFA0
tetradic
#A040DF #DF5140 #7FDF40 #40CFDF
square
#A040DF #DF5140 #7FDF40 #40CFDF
split-complementary
#A040DF #CFDF40 #40DF51
monochromatic
#5E188D #8220C1 #A040DF #BA74E8 #D4A9F1

Accessibility & contrast

On white

4.89
#A040DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#A040DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040DF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040DF#FFFFFF#000000##FFFFFF
##A040DF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE4
Deuteranopia (green-blind)
#1072DC
Tritanopia (blue-blind)
#96658C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a040df;
/* rgb */ color: rgb(160, 64, 223);
/* oklch */ color: oklch(57.7% 0.232 308.3);
Tailwind
colors: {
  custom: {
    50: '#c17dea',
    500: '#a040df',
    950: '#000000',
  },
}
SCSS
$custom: #a040df;
$custom-light: #c17dea;
$custom-dark: #000000;
JSON
{
  "hex": "#a040df",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 276.226,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57706,
    "c": 0.23179,
    "h": 308.3
  },
  "luminance": 0.16468
}

Semantic roles & 50–950 ramp

primary
#A040DF
secondary
#B7DE9D
accent
#EE3A81
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A040DF

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

Preview Lab → · Contrast checker → · Palette generator →

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