#A540D4#A540D4

#A540D4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.223 H 312.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A540D4
RGBrgb(165, 64, 212)
HSLhsl(281, 63%, 54%)
HSVhsv(281, 70%, 83%)
CMYKcmyk(22.2%, 69.8%, 0%, 16.9%)
CIE-LABlab(47.52, 63.70, -57.93)
CIE-LCHlch(47.52, 86.11, 317.72°)
OKLaboklab(57.57% 0.1515 -0.1635)
OKLCHoklch(57.57% 0.223 312.8)
XYZxyz(29.2320, 16.4204, 63.9042)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540D4 #6FD440
analogous
#5B40D4 #A540D4 #D440B9
triadic
#A540D4 #D4A540 #40D4A5
tetradic
#A540D4 #D45B40 #6FD440 #40B9D4
square
#A540D4 #D45B40 #6FD440 #40B9D4
split-complementary
#A540D4 #B9D440 #40D45B
monochromatic
#5F1C7D #8427AF #A540D4 #BD72DF #D4A4EA

Accessibility & contrast

On white

4.90
#A540D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A540D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540D4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540D4#FFFFFF#000000##FFFFFF
##A540D41.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#3273D1
Tritanopia (blue-blind)
#A05F86
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a540d4;
/* rgb */ color: rgb(165, 64, 212);
/* oklch */ color: oklch(57.6% 0.223 312.8);
Tailwind
colors: {
  custom: {
    50: '#c47de2',
    500: '#a540d4',
    950: '#000000',
  },
}
SCSS
$custom: #a540d4;
$custom-light: #c47de2;
$custom-dark: #000000;
JSON
{
  "hex": "#a540d4",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 280.946,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.22287,
    "h": 312.8
  },
  "luminance": 0.1642
}

Semantic roles & 50–950 ramp

primary
#A540D4
secondary
#ACD798
accent
#E64276
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540D4

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

Preview Lab → · Contrast checker → · Palette generator →

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