#A540C5#A540C5

#A540C5 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.209 H 316.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A540C5
RGBrgb(165, 64, 197)
HSLhsl(286, 53%, 51%)
HSVhsv(286, 68%, 77%)
CMYKcmyk(16.2%, 67.5%, 0%, 22.7%)
CIE-LABlab(46.58, 60.68, -50.81)
CIE-LCHlch(46.58, 79.14, 320.06°)
OKLaboklab(56.59% 0.1526 -0.1426)
OKLCHoklch(56.59% 0.209 316.9)
XYZxyz(27.4270, 15.6984, 54.3979)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C5 #60C540
analogous
#6240C5 #A540C5 #C540A2
triadic
#A540C5 #C5A540 #40C5A5
tetradic
#A540C5 #C56240 #60C540 #40A2C5
square
#A540C5 #C56240 #60C540 #40A2C5
split-complementary
#A540C5 #A2C540 #40C562
monochromatic
#59206A #802F99 #A540C5 #BB6FD3 #D19EE2

Accessibility & contrast

On white

5.07
#A540C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A540C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C5#FFFFFF#000000##FFFFFF
##A540C51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#4271C2
Tritanopia (blue-blind)
#A3597E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a540c5;
/* rgb */ color: rgb(165, 64, 197);
/* oklch */ color: oklch(56.6% 0.209 316.9);
Tailwind
colors: {
  custom: {
    50: '#c37dd7',
    500: '#a540c5',
    950: '#000000',
  },
}
SCSS
$custom: #a540c5;
$custom-light: #c37dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c5",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 285.564,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56592,
    "c": 0.20889,
    "h": 316.9
  },
  "luminance": 0.15697
}

Semantic roles & 50–950 ramp

primary
#A540C5
secondary
#A1CE93
accent
#DD4B6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540C5

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

Preview Lab → · Contrast checker → · Palette generator →

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