#A540D3#A540D3

#A540D3 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.222 H 313.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A540D3
RGBrgb(165, 64, 211)
HSLhsl(281, 63%, 54%)
HSVhsv(281, 70%, 83%)
CMYKcmyk(21.8%, 69.7%, 0%, 17.3%)
CIE-LABlab(47.46, 63.50, -57.46)
CIE-LCHlch(47.46, 85.64, 317.86°)
OKLaboklab(57.5% 0.1516 -0.1621)
OKLCHoklch(57.5% 0.222 313.1)
XYZxyz(29.1062, 16.3701, 63.2419)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540D3 #6ED340
analogous
#5C40D3 #A540D3 #D340B8
triadic
#A540D3 #D3A540 #40D3A5
tetradic
#A540D3 #D35C40 #6ED340 #40B8D3
square
#A540D3 #D35C40 #6ED340 #40B8D3
split-complementary
#A540D3 #B8D340 #40D35C
monochromatic
#5E1D7C #8428AE #A540D3 #BC72DE #D4A3EA

Accessibility & contrast

On white

4.91
#A540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#A540D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540D3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540D3#FFFFFF#000000##FFFFFF
##A540D31.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#3473D0
Tritanopia (blue-blind)
#A05F85
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a540d3;
/* rgb */ color: rgb(165, 64, 211);
/* oklch */ color: oklch(57.5% 0.222 313.1);
Tailwind
colors: {
  custom: {
    50: '#c47de1',
    500: '#a540d3',
    950: '#000000',
  },
}
SCSS
$custom: #a540d3;
$custom-light: #c47de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a540d3",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 281.224,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57503,
    "c": 0.22193,
    "h": 313.1
  },
  "luminance": 0.16369
}

Semantic roles & 50–950 ramp

primary
#A540D3
secondary
#ACD798
accent
#E64275
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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