#A540CC#A540CC

#A540CC is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.215 H 315.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#A540CC
RGBrgb(165, 64, 204)
HSLhsl(283, 58%, 53%)
HSVhsv(283, 69%, 80%)
CMYKcmyk(19.1%, 68.6%, 0%, 20%)
CIE-LABlab(47.01, 62.08, -54.16)
CIE-LCHlch(47.01, 82.38, 318.90°)
OKLaboklab(57.04% 0.1522 -0.1524)
OKLCHoklch(57.04% 0.215 315)
XYZxyz(28.2478, 16.0267, 58.7205)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CC #67CC40
analogous
#5F40CC #A540CC #CC40AD
triadic
#A540CC #CCA540 #40CCA5
tetradic
#A540CC #CC5F40 #67CC40 #40ADCC
square
#A540CC #CC5F40 #67CC40 #40ADCC
split-complementary
#A540CC #ADCC40 #40CC5F
monochromatic
#5B1F73 #822CA3 #A540CC #BC70D9 #D3A1E6

Accessibility & contrast

On white

4.99
#A540CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A540CC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CC#FFFFFF#000000##FFFFFF
##A540CC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#3C72C9
Tritanopia (blue-blind)
#A25C81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540cc;
/* rgb */ color: rgb(165, 64, 204);
/* oklch */ color: oklch(57.0% 0.215 315.0);
Tailwind
colors: {
  custom: {
    50: '#c47ddc',
    500: '#a540cc',
    950: '#000000',
  },
}
SCSS
$custom: #a540cc;
$custom-light: #c47ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#a540cc",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 283.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57041,
    "c": 0.2154,
    "h": 315
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#A540CC
secondary
#A6D295
accent
#E14772
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CC

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

Preview Lab → · Contrast checker → · Palette generator →

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