#A540AE#A540AE

#A540AE is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.188 H 324.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#A540AE
RGBrgb(165, 64, 174)
HSLhsl(295, 46%, 47%)
HSVhsv(295, 63%, 68%)
CMYKcmyk(5.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(45.25, 56.29, -39.47)
CIE-LCHlch(45.25, 68.75, 324.96°)
OKLaboklab(55.21% 0.1528 -0.1095)
OKLCHoklch(55.21% 0.188 324.4)
XYZxyz(24.9898, 14.7236, 41.5619)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540AE #49AE40
analogous
#6E40AE #A540AE #AE4080
triadic
#A540AE #AEA540 #40AEA5
tetradic
#A540AE #AE6E40 #49AE40 #4080AE
square
#A540AE #AE6E40 #49AE40 #4080AE
split-complementary
#A540AE #80AE40 #40AE6E
monochromatic
#501F55 #7B3081 #A540AE #BE65C6 #D192D7

Accessibility & contrast

On white

5.32
#A540AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#A540AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540AE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540AE#FFFFFF#000000##FFFFFF
##A540AE1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B63B1
Deuteranopia (green-blind)
#536FAB
Tritanopia (blue-blind)
#A85071
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a540ae;
/* rgb */ color: rgb(165, 64, 174);
/* oklch */ color: oklch(55.2% 0.188 324.4);
Tailwind
colors: {
  custom: {
    50: '#c37cc6',
    500: '#a540ae',
    950: '#000000',
  },
}
SCSS
$custom: #a540ae;
$custom-light: #c37cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#a540ae",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 295.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55212,
    "c": 0.18801,
    "h": 324.4
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#A540AE
secondary
#8DC288
accent
#D6525D
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540AE

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

Preview Lab → · Contrast checker → · Palette generator →

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