#A540A5#A540A5

#A540A5 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.7% C 0.180 H 327.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#A540A5
RGBrgb(165, 64, 165)
HSLhsl(300, 44%, 45%)
HSVhsv(300, 61%, 65%)
CMYKcmyk(0%, 61.2%, 0%, 35.3%)
CIE-LABlab(44.78, 54.67, -34.89)
CIE-LCHlch(44.78, 64.86, 327.45°)
OKLaboklab(54.71% 0.1523 -0.0963)
OKLCHoklch(54.71% 0.18 327.7)
XYZxyz(24.1416, 14.3843, 37.0949)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540A5 #40A540
analogous
#7340A5 #A540A5 #A54073
triadic
#A540A5 #A5A540 #40A5A5
tetradic
#A540A5 #A57340 #40A540 #4073A5
square
#A540A5 #A57340 #40A540 #4073A5
split-complementary
#A540A5 #73A540 #40A573
monochromatic
#4D1E4D #792F79 #A540A5 #C261C2 #D38DD3

Accessibility & contrast

On white

5.42
#A540A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#A540A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540A5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540A5#FFFFFF#000000##FFFFFF
##A540A51.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A8
Deuteranopia (green-blind)
#586FA2
Tritanopia (blue-blind)
#AA4D6D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a540a5;
/* rgb */ color: rgb(165, 64, 165);
/* oklch */ color: oklch(54.7% 0.180 327.7);
Tailwind
colors: {
  custom: {
    50: '#c37cc0',
    500: '#a540a5',
    950: '#000000',
  },
}
SCSS
$custom: #a540a5;
$custom-light: #c37cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#a540a5",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 300,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54714,
    "c": 0.18014,
    "h": 327.7
  },
  "luminance": 0.14383
}

Semantic roles & 50–950 ramp

primary
#A540A5
secondary
#83BE83
accent
#D45454
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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