#A540D2#A540D2

#A540D2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.221 H 313.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#A540D2
RGBrgb(165, 64, 210)
HSLhsl(282, 62%, 54%)
HSVhsv(282, 70%, 82%)
CMYKcmyk(21.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(47.39, 63.29, -56.99)
CIE-LCHlch(47.39, 85.17, 318.00°)
OKLaboklab(57.44% 0.1517 -0.1607)
OKLCHoklch(57.44% 0.221 313.3)
XYZxyz(28.9813, 16.3202, 62.5837)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540D2 #6DD240
analogous
#5C40D2 #A540D2 #D240B6
triadic
#A540D2 #D2A540 #40D2A5
tetradic
#A540D2 #D25C40 #6DD240 #40B6D2
square
#A540D2 #D25C40 #6DD240 #40B6D2
split-complementary
#A540D2 #B6D240 #40D25C
monochromatic
#5E1D7B #8429AC #A540D2 #BC72DE #D4A3E9

Accessibility & contrast

On white

4.93
#A540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#A540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540D2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540D2#FFFFFF#000000##FFFFFF
##A540D21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#3573CF
Tritanopia (blue-blind)
#A05F85
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a540d2;
/* rgb */ color: rgb(165, 64, 210);
/* oklch */ color: oklch(57.4% 0.221 313.3);
Tailwind
colors: {
  custom: {
    50: '#c47de1',
    500: '#a540d2',
    950: '#000000',
  },
}
SCSS
$custom: #a540d2;
$custom-light: #c47de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a540d2",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 281.507,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57436,
    "c": 0.22099,
    "h": 313.3
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

primary
#A540D2
secondary
#ABD698
accent
#E54375
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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