#A540C8#A540C8

#A540C8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.212 H 316.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A540C8
RGBrgb(165, 64, 200)
HSLhsl(285, 55%, 52%)
HSVhsv(285, 68%, 78%)
CMYKcmyk(17.5%, 68%, 0%, 21.6%)
CIE-LABlab(46.76, 61.28, -52.25)
CIE-LCHlch(46.76, 80.53, 319.55°)
OKLaboklab(56.78% 0.1525 -0.1468)
OKLCHoklch(56.78% 0.212 316.1)
XYZxyz(27.7742, 15.8373, 56.2263)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C8 #63C840
analogous
#6140C8 #A540C8 #C840A7
triadic
#A540C8 #C8A540 #40C8A5
tetradic
#A540C8 #C86140 #63C840 #40A7C8
square
#A540C8 #C86140 #63C840 #40A7C8
split-complementary
#A540C8 #A7C840 #40C861
monochromatic
#5A206E #812D9D #A540C8 #BB70D6 #D29FE3

Accessibility & contrast

On white

5.04
#A540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A540C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C8#FFFFFF#000000##FFFFFF
##A540C81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#4072C5
Tritanopia (blue-blind)
#A35B7F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540c8;
/* rgb */ color: rgb(165, 64, 200);
/* oklch */ color: oklch(56.8% 0.212 316.1);
Tailwind
colors: {
  custom: {
    50: '#c37dd9',
    500: '#a540c8',
    950: '#000000',
  },
}
SCSS
$custom: #a540c8;
$custom-light: #c37dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c8",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 284.559,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56783,
    "c": 0.21168,
    "h": 316.1
  },
  "luminance": 0.15836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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