#A540C4#A540C4

#A540C4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.5% C 0.208 H 317.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A540C4
RGBrgb(165, 64, 196)
HSLhsl(286, 53%, 51%)
HSVhsv(286, 67%, 77%)
CMYKcmyk(15.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(46.52, 60.48, -50.33)
CIE-LCHlch(46.52, 78.68, 320.24°)
OKLaboklab(56.53% 0.1527 -0.1412)
OKLCHoklch(56.53% 0.208 317.2)
XYZxyz(27.3128, 15.6528, 53.7964)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C4 #5FC440
analogous
#6340C4 #A540C4 #C440A1
triadic
#A540C4 #C4A540 #40C4A5
tetradic
#A540C4 #C46340 #5FC440 #40A1C4
square
#A540C4 #C46340 #5FC440 #40A1C4
split-complementary
#A540C4 #A1C440 #40C463
monochromatic
#582069 #7F2F98 #A540C4 #BB6FD2 #D19EE1

Accessibility & contrast

On white

5.08
#A540C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A540C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C4#FFFFFF#000000##FFFFFF
##A540C41.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#4371C1
Tritanopia (blue-blind)
#A4597D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a540c4;
/* rgb */ color: rgb(165, 64, 196);
/* oklch */ color: oklch(56.5% 0.208 317.2);
Tailwind
colors: {
  custom: {
    50: '#c37dd6',
    500: '#a540c4',
    950: '#000000',
  },
}
SCSS
$custom: #a540c4;
$custom-light: #c37dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c4",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 285.909,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56529,
    "c": 0.20797,
    "h": 317.2
  },
  "luminance": 0.15652
}

Semantic roles & 50–950 ramp

primary
#A540C4
secondary
#A0CD93
accent
#DC4C6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540C4

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

Preview Lab → · Contrast checker → · Palette generator →

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