#A540B1#A540B1

#A540B1 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.191 H 323.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A540B1
RGBrgb(165, 64, 177)
HSLhsl(294, 47%, 47%)
HSVhsv(294, 64%, 69%)
CMYKcmyk(6.8%, 63.8%, 0%, 30.6%)
CIE-LABlab(45.42, 56.85, -40.98)
CIE-LCHlch(45.42, 70.08, 324.21°)
OKLaboklab(55.38% 0.1529 -0.1139)
OKLCHoklch(55.38% 0.191 323.3)
XYZxyz(25.2855, 14.8418, 43.1194)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B1 #4CB140
analogous
#6C40B1 #A540B1 #B14085
triadic
#A540B1 #B1A540 #40B1A5
tetradic
#A540B1 #B16C40 #4CB140 #4085B1
square
#A540B1 #B16C40 #4CB140 #4085B1
split-complementary
#A540B1 #85B140 #40B16C
monochromatic
#511F57 #7B3084 #A540B1 #BD66C8 #D193D8

Accessibility & contrast

On white

5.29
#A540B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A540B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B1#FFFFFF#000000##FFFFFF
##A540B11.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#5170AE
Tritanopia (blue-blind)
#A85173
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a540b1;
/* rgb */ color: rgb(165, 64, 177);
/* oklch */ color: oklch(55.4% 0.191 323.3);
Tailwind
colors: {
  custom: {
    50: '#c37cc9',
    500: '#a540b1',
    950: '#000000',
  },
}
SCSS
$custom: #a540b1;
$custom-light: #c37cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b1",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 293.628,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55383,
    "c": 0.19068,
    "h": 323.3
  },
  "luminance": 0.1484
}

Semantic roles & 50–950 ramp

primary
#A540B1
secondary
#8FC389
accent
#D7515F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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