#A040DB#A040DB

#A040DB is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.228 H 309.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A040DB
RGBrgb(160, 64, 219)
HSLhsl(277, 68%, 55%)
HSVhsv(277, 71%, 86%)
CMYKcmyk(26.9%, 70.8%, 0%, 14.1%)
CIE-LABlab(47.31, 64.17, -62.31)
CIE-LCHlch(47.31, 89.44, 315.84°)
OKLaboklab(57.42% 0.1442 -0.1765)
OKLCHoklch(57.42% 0.228 309.2)
XYZxyz(29.1142, 16.2554, 68.6080)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040DB #7BDB40
analogous
#5240DB #A040DB #DB40C9
triadic
#A040DB #DBA040 #40DBA0
tetradic
#A040DB #DB5240 #7BDB40 #40C9DB
square
#A040DB #DB5240 #7BDB40 #40C9DB
split-complementary
#A040DB #C9DB40 #40DB52
monochromatic
#5D1987 #8123BB #A040DB #BA73E5 #D3A7EE

Accessibility & contrast

On white

4.94
#A040DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#A040DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040DB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040DB#FFFFFF#000000##FFFFFF
##A040DB1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#1C71D8
Tritanopia (blue-blind)
#97638A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a040db;
/* rgb */ color: rgb(160, 64, 219);
/* oklch */ color: oklch(57.4% 0.228 309.2);
Tailwind
colors: {
  custom: {
    50: '#c17de7',
    500: '#a040db',
    950: '#000000',
  },
}
SCSS
$custom: #a040db;
$custom-light: #c17de7;
$custom-dark: #000000;
JSON
{
  "hex": "#a040db",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 277.161,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57423,
    "c": 0.22796,
    "h": 309.2
  },
  "luminance": 0.16255
}

Semantic roles & 50–950 ramp

primary
#A040DB
secondary
#B4DC9B
accent
#EB3D7F
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A040DB

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

Preview Lab → · Contrast checker → · Palette generator →

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