#A540D0#A540D0

#A540D0 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.219 H 313.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#A540D0
RGBrgb(165, 64, 208)
HSLhsl(282, 61%, 53%)
HSVhsv(282, 69%, 82%)
CMYKcmyk(20.7%, 69.2%, 0%, 18.4%)
CIE-LABlab(47.26, 62.89, -56.05)
CIE-LCHlch(47.26, 84.24, 318.29°)
OKLaboklab(57.3% 0.1518 -0.158)
OKLCHoklch(57.3% 0.219 313.9)
XYZxyz(28.7337, 16.2211, 61.2797)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540D0 #6BD040
analogous
#5D40D0 #A540D0 #D040B3
triadic
#A540D0 #D0A540 #40D0A5
tetradic
#A540D0 #D05D40 #6BD040 #40B3D0
square
#A540D0 #D05D40 #6BD040 #40B3D0
split-complementary
#A540D0 #B3D040 #40D05D
monochromatic
#5D1E78 #832AA9 #A540D0 #BC71DC #D3A2E8

Accessibility & contrast

On white

4.95
#A540D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#A540D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540D0
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540D0#FFFFFF#000000##FFFFFF
##A540D01.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD4
Deuteranopia (green-blind)
#3772CD
Tritanopia (blue-blind)
#A15E84
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a540d0;
/* rgb */ color: rgb(165, 64, 208);
/* oklch */ color: oklch(57.3% 0.219 313.9);
Tailwind
colors: {
  custom: {
    50: '#c47ddf',
    500: '#a540d0',
    950: '#000000',
  },
}
SCSS
$custom: #a540d0;
$custom-light: #c47ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#a540d0",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 282.083,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.21912,
    "h": 313.9
  },
  "luminance": 0.1622
}

Semantic roles & 50–950 ramp

primary
#A540D0
secondary
#A9D597
accent
#E44474
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540D0

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

Preview Lab → · Contrast checker → · Palette generator →

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