#A540C9#A540C9

#A540C9 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.213 H 315.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A540C9
RGBrgb(165, 64, 201)
HSLhsl(284, 56%, 52%)
HSVhsv(284, 68%, 79%)
CMYKcmyk(17.9%, 68.2%, 0%, 21.2%)
CIE-LABlab(46.82, 61.48, -52.73)
CIE-LCHlch(46.82, 80.99, 319.38°)
OKLaboklab(56.85% 0.1524 -0.1482)
OKLCHoklch(56.85% 0.213 315.8)
XYZxyz(27.8914, 15.8842, 56.8438)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C9 #64C940
analogous
#6140C9 #A540C9 #C940A8
triadic
#A540C9 #C9A540 #40C9A5
tetradic
#A540C9 #C96140 #64C940 #40A8C9
square
#A540C9 #C96140 #64C940 #40A8C9
split-complementary
#A540C9 #A8C940 #40C961
monochromatic
#5A1F6F #812D9F #A540C9 #BB70D6 #D29FE4

Accessibility & contrast

On white

5.03
#A540C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A540C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C9#FFFFFF#000000##FFFFFF
##A540C91.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#3F72C6
Tritanopia (blue-blind)
#A35B80
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540c9;
/* rgb */ color: rgb(165, 64, 201);
/* oklch */ color: oklch(56.8% 0.213 315.8);
Tailwind
colors: {
  custom: {
    50: '#c37dda',
    500: '#a540c9',
    950: '#000000',
  },
}
SCSS
$custom: #a540c9;
$custom-light: #c37dda;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c9",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 284.234,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.56847,
    "c": 0.2126,
    "h": 315.8
  },
  "luminance": 0.15883
}

Semantic roles & 50–950 ramp

primary
#A540C9
secondary
#A4D094
accent
#DF4970
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540C9

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

Preview Lab → · Contrast checker → · Palette generator →

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