#A540A4#A540A4

#A540A4 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.7% C 0.179 H 328.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#A540A4
RGBrgb(165, 64, 164)
HSLhsl(301, 44%, 45%)
HSVhsv(301, 61%, 65%)
CMYKcmyk(0%, 61.2%, 0.6%, 35.3%)
CIE-LABlab(44.73, 54.49, -34.38)
CIE-LCHlch(44.73, 64.43, 327.75°)
OKLaboklab(54.66% 0.1522 -0.0948)
OKLCHoklch(54.66% 0.179 328.1)
XYZxyz(24.0510, 14.3480, 36.6174)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540A4 #40A541
analogous
#7440A5 #A540A4 #A54072
triadic
#A540A4 #A4A540 #40A4A5
tetradic
#A540A4 #A57440 #40A541 #4072A5
square
#A540A4 #A57440 #40A541 #4072A5
split-complementary
#A540A4 #72A540 #40A574
monochromatic
#4D1E4C #792F78 #A540A4 #C261C1 #D38DD2

Accessibility & contrast

On white

5.43
#A540A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#A540A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540A4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540A4#FFFFFF#000000##FFFFFF
##A540A41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#586FA1
Tritanopia (blue-blind)
#AA4C6C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a540a4;
/* rgb */ color: rgb(165, 64, 164);
/* oklch */ color: oklch(54.7% 0.179 328.1);
Tailwind
colors: {
  custom: {
    50: '#c37cbf',
    500: '#a540a4',
    950: '#000000',
  },
}
SCSS
$custom: #a540a4;
$custom-light: #c37cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#a540a4",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 300.594,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5466,
    "c": 0.17928,
    "h": 328.1
  },
  "luminance": 0.14346
}

Semantic roles & 50–950 ramp

primary
#A540A4
secondary
#83BE84
accent
#D45554
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A540A4

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

Preview Lab → · Contrast checker → · Palette generator →

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