#A540CA#A540CA

#A540CA is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.214 H 315.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A540CA
RGBrgb(165, 64, 202)
HSLhsl(284, 57%, 52%)
HSVhsv(284, 68%, 79%)
CMYKcmyk(18.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(46.88, 61.68, -53.20)
CIE-LCHlch(46.88, 81.45, 319.22°)
OKLaboklab(56.91% 0.1523 -0.1496)
OKLCHoklch(56.91% 0.214 315.5)
XYZxyz(28.0094, 15.9314, 57.4653)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CA #65CA40
analogous
#6040CA #A540CA #CA40AA
triadic
#A540CA #CAA540 #40CAA5
tetradic
#A540CA #CA6040 #65CA40 #40AACA
square
#A540CA #CA6040 #65CA40 #40AACA
split-complementary
#A540CA #AACA40 #40CA60
monochromatic
#5B1F70 #812CA0 #A540CA #BC70D7 #D2A0E5

Accessibility & contrast

On white

5.02
#A540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#A540CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540CA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CA#FFFFFF#000000##FFFFFF
##A540CA1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#3E72C7
Tritanopia (blue-blind)
#A25B80
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540ca;
/* rgb */ color: rgb(165, 64, 202);
/* oklch */ color: oklch(56.9% 0.214 315.5);
Tailwind
colors: {
  custom: {
    50: '#c47ddb',
    500: '#a540ca',
    950: '#000000',
  },
}
SCSS
$custom: #a540ca;
$custom-light: #c47ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a540ca",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 283.913,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56911,
    "c": 0.21353,
    "h": 315.5
  },
  "luminance": 0.1593
}

Semantic roles & 50–950 ramp

primary
#A540CA
secondary
#A5D195
accent
#E04871
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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