#A540B8#A540B8

#A540B8 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.197 H 321.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A540B8
RGBrgb(165, 64, 184)
HSLhsl(291, 48%, 49%)
HSVhsv(291, 65%, 72%)
CMYKcmyk(10.3%, 65.2%, 0%, 27.8%)
CIE-LABlab(45.81, 58.16, -44.46)
CIE-LCHlch(45.81, 73.21, 322.60°)
OKLaboklab(55.79% 0.153 -0.1241)
OKLCHoklch(55.79% 0.197 321)
XYZxyz(26.0012, 15.1281, 46.8885)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B8 #53B840
analogous
#6940B8 #A540B8 #B8408F
triadic
#A540B8 #B8A540 #40B8A5
tetradic
#A540B8 #B86940 #53B840 #408FB8
square
#A540B8 #B86940 #53B840 #408FB8
split-complementary
#A540B8 #8FB840 #40B869
monochromatic
#54205D #7C308B #A540B8 #BC6ACB #D097DB

Accessibility & contrast

On white

5.22
#A540B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A540B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B8#FFFFFF#000000##FFFFFF
##A540B81.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BC
Deuteranopia (green-blind)
#4C70B5
Tritanopia (blue-blind)
#A65477
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b8;
/* rgb */ color: rgb(165, 64, 184);
/* oklch */ color: oklch(55.8% 0.197 321.0);
Tailwind
colors: {
  custom: {
    50: '#c37cce',
    500: '#a540b8',
    950: '#000000',
  },
}
SCSS
$custom: #a540b8;
$custom-light: #c37cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b8",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 290.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55793,
    "c": 0.19698,
    "h": 321
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#A540B8
secondary
#96C78D
accent
#D85065
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B8

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

Preview Lab → · Contrast checker → · Palette generator →

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