#A540B5#A540B5

#A540B5 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.194 H 321.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A540B5
RGBrgb(165, 64, 181)
HSLhsl(292, 48%, 48%)
HSVhsv(292, 65%, 71%)
CMYKcmyk(8.8%, 64.6%, 0%, 29%)
CIE-LABlab(45.64, 57.59, -42.98)
CIE-LCHlch(45.64, 71.86, 323.27°)
OKLaboklab(55.62% 0.153 -0.1197)
OKLCHoklch(55.62% 0.194 321.9)
XYZxyz(25.6900, 15.0037, 45.2499)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B5 #50B540
analogous
#6A40B5 #A540B5 #B5408A
triadic
#A540B5 #B5A540 #40B5A5
tetradic
#A540B5 #B56A40 #50B540 #408AB5
square
#A540B5 #B56A40 #50B540 #408AB5
split-complementary
#A540B5 #8AB540 #40B56A
monochromatic
#53205B #7C3088 #A540B5 #BC68CA #D096DA

Accessibility & contrast

On white

5.25
#A540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A540B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B5#FFFFFF#000000##FFFFFF
##A540B51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365B8
Deuteranopia (green-blind)
#4E70B2
Tritanopia (blue-blind)
#A75375
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b5;
/* rgb */ color: rgb(165, 64, 181);
/* oklch */ color: oklch(55.6% 0.194 321.9);
Tailwind
colors: {
  custom: {
    50: '#c37ccc',
    500: '#a540b5',
    950: '#000000',
  },
}
SCSS
$custom: #a540b5;
$custom-light: #c37ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b5",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 291.795,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55616,
    "c": 0.19427,
    "h": 321.9
  },
  "luminance": 0.15002
}

Semantic roles & 50–950 ramp

primary
#A540B5
secondary
#93C58B
accent
#D75063
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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