#A540A8#A540A8

#A540A8 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.183 H 326.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#A540A8
RGBrgb(165, 64, 168)
HSLhsl(298, 45%, 45%)
HSVhsv(298, 62%, 66%)
CMYKcmyk(1.8%, 61.9%, 0%, 34.1%)
CIE-LABlab(44.93, 55.21, -36.43)
CIE-LCHlch(44.93, 66.14, 326.58°)
OKLaboklab(54.88% 0.1525 -0.1007)
OKLCHoklch(54.88% 0.183 326.6)
XYZxyz(24.4179, 14.4948, 38.5498)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540A8 #43A840
analogous
#7140A8 #A540A8 #A84077
triadic
#A540A8 #A8A540 #40A8A5
tetradic
#A540A8 #A87140 #43A840 #4077A8
square
#A540A8 #A87140 #43A840 #4077A8
split-complementary
#A540A8 #77A840 #40A871
monochromatic
#4E1E4F #792F7C #A540A8 #C062C3 #D28ED4

Accessibility & contrast

On white

5.39
#A540A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A540A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540A8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540A8#FFFFFF#000000##FFFFFF
##A540A81.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#A94E6E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a540a8;
/* rgb */ color: rgb(165, 64, 168);
/* oklch */ color: oklch(54.9% 0.183 326.6);
Tailwind
colors: {
  custom: {
    50: '#c37cc2',
    500: '#a540a8',
    950: '#000000',
  },
}
SCSS
$custom: #a540a8;
$custom-light: #c37cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a540a8",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 298.269,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54877,
    "c": 0.18274,
    "h": 326.6
  },
  "luminance": 0.14493
}

Semantic roles & 50–950 ramp

primary
#A540A8
secondary
#86BF85
accent
#D55357
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A540A8

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

Preview Lab → · Contrast checker → · Palette generator →

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