#A540A2#A540A2

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

Color values

HEX#A540A2
RGBrgb(165, 64, 162)
HSLhsl(302, 44%, 45%)
HSVhsv(302, 61%, 65%)
CMYKcmyk(0%, 61.2%, 1.8%, 35.3%)
CIE-LABlab(44.63, 54.14, -33.35)
CIE-LCHlch(44.63, 63.59, 328.37°)
OKLaboklab(54.55% 0.152 -0.0918)
OKLCHoklch(54.55% 0.178 328.9)
XYZxyz(23.8718, 14.2764, 35.6737)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540A2 #40A543
analogous
#7540A5 #A540A2 #A54070
triadic
#A540A2 #A2A540 #40A2A5
tetradic
#A540A2 #A57540 #40A543 #4070A5
square
#A540A2 #A57540 #40A543 #4070A5
split-complementary
#A540A2 #70A540 #40A575
monochromatic
#4D1E4B #792F77 #A540A2 #C261BF #D38DD1

Accessibility & contrast

On white

5.45
#A540A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#A540A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540A2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540A2#FFFFFF#000000##FFFFFF
##A540A21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#AA4C6B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a540a2;
/* rgb */ color: rgb(165, 64, 162);
/* oklch */ color: oklch(54.6% 0.178 328.9);
Tailwind
colors: {
  custom: {
    50: '#c27bbe',
    500: '#a540a2',
    950: '#000000',
  },
}
SCSS
$custom: #a540a2;
$custom-light: #c27bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a540a2",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 301.782,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54553,
    "c": 0.17757,
    "h": 328.9
  },
  "luminance": 0.14275
}

Semantic roles & 50–950 ramp

primary
#A540A2
secondary
#83BE85
accent
#D45854
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A540A2

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

Preview Lab → · Contrast checker → · Palette generator →

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