#A540A3#A540A3

#A540A3 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.6% C 0.178 H 328.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#A540A3
RGBrgb(165, 64, 163)
HSLhsl(301, 44%, 45%)
HSVhsv(301, 61%, 65%)
CMYKcmyk(0%, 61.2%, 1.2%, 35.3%)
CIE-LABlab(44.68, 54.32, -33.86)
CIE-LCHlch(44.68, 64.01, 328.06°)
OKLaboklab(54.61% 0.1521 -0.0933)
OKLCHoklch(54.61% 0.178 328.5)
XYZxyz(23.9610, 14.3121, 36.1437)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540A3 #40A542
analogous
#7440A5 #A540A3 #A54071
triadic
#A540A3 #A3A540 #40A3A5
tetradic
#A540A3 #A57440 #40A542 #4071A5
square
#A540A3 #A57440 #40A542 #4071A5
split-complementary
#A540A3 #71A540 #40A574
monochromatic
#4D1E4C #792F77 #A540A3 #C261C0 #D38DD1

Accessibility & contrast

On white

5.44
#A540A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#A540A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540A3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540A3#FFFFFF#000000##FFFFFF
##A540A31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A6
Deuteranopia (green-blind)
#596EA0
Tritanopia (blue-blind)
#AA4C6C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a540a3;
/* rgb */ color: rgb(165, 64, 163);
/* oklch */ color: oklch(54.6% 0.178 328.5);
Tailwind
colors: {
  custom: {
    50: '#c27bbe',
    500: '#a540a3',
    950: '#000000',
  },
}
SCSS
$custom: #a540a3;
$custom-light: #c27bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a540a3",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 301.188,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54607,
    "c": 0.17843,
    "h": 328.5
  },
  "luminance": 0.1431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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