#A540AA#A540AA

#A540AA is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.184 H 325.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A540AA
RGBrgb(165, 64, 170)
HSLhsl(297, 45%, 46%)
HSVhsv(297, 62%, 67%)
CMYKcmyk(2.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(45.04, 55.56, -37.45)
CIE-LCHlch(45.04, 67.01, 326.02°)
OKLaboklab(54.99% 0.1526 -0.1037)
OKLCHoklch(54.99% 0.184 325.8)
XYZxyz(24.6056, 14.5699, 39.5387)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540AA #45AA40
analogous
#7040AA #A540AA #AA407A
triadic
#A540AA #AAA540 #40AAA5
tetradic
#A540AA #AA7040 #45AA40 #407AAA
square
#A540AA #AA7040 #45AA40 #407AAA
split-complementary
#A540AA #7AAA40 #40AA70
monochromatic
#4F1F51 #7A2F7E #A540AA #C063C4 #D28FD5

Accessibility & contrast

On white

5.37
#A540AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A540AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540AA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540AA#FFFFFF#000000##FFFFFF
##A540AA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#A94F6F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a540aa;
/* rgb */ color: rgb(165, 64, 170);
/* oklch */ color: oklch(55.0% 0.184 325.8);
Tailwind
colors: {
  custom: {
    50: '#c37cc4',
    500: '#a540aa',
    950: '#000000',
  },
}
SCSS
$custom: #a540aa;
$custom-light: #c37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a540aa",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 297.17,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54987,
    "c": 0.18448,
    "h": 325.8
  },
  "luminance": 0.14568
}

Semantic roles & 50–950 ramp

primary
#A540AA
secondary
#88C086
accent
#D55359
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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