#A540CD#A540CD

#A540CD is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.1% C 0.216 H 314.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#A540CD
RGBrgb(165, 64, 205)
HSLhsl(283, 59%, 53%)
HSVhsv(283, 69%, 80%)
CMYKcmyk(19.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(47.07, 62.28, -54.63)
CIE-LCHlch(47.07, 82.85, 318.74°)
OKLaboklab(57.11% 0.1521 -0.1538)
OKLCHoklch(57.11% 0.216 314.7)
XYZxyz(28.3681, 16.0749, 59.3542)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CD #68CD40
analogous
#5F40CD #A540CD #CD40AE
triadic
#A540CD #CDA540 #40CDA5
tetradic
#A540CD #CD5F40 #68CD40 #40AECD
square
#A540CD #CD5F40 #68CD40 #40AECD
split-complementary
#A540CD #AECD40 #40CD5F
monochromatic
#5C1E74 #822BA5 #A540CD #BC71DA #D3A1E6

Accessibility & contrast

On white

4.98
#A540CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#A540CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540CD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CD#FFFFFF#000000##FFFFFF
##A540CD1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3B72CA
Tritanopia (blue-blind)
#A25D82
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a540cd;
/* rgb */ color: rgb(165, 64, 205);
/* oklch */ color: oklch(57.1% 0.216 314.7);
Tailwind
colors: {
  custom: {
    50: '#c47ddd',
    500: '#a540cd',
    950: '#000000',
  },
}
SCSS
$custom: #a540cd;
$custom-light: #c47ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a540cd",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 282.979,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57106,
    "c": 0.21633,
    "h": 314.7
  },
  "luminance": 0.16074
}

Semantic roles & 50–950 ramp

primary
#A540CD
secondary
#A7D396
accent
#E24672
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CD

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

Preview Lab → · Contrast checker → · Palette generator →

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