#A540C0#A540C0

#A540C0 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.3% C 0.204 H 318.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A540C0
RGBrgb(165, 64, 192)
HSLhsl(287, 50%, 50%)
HSVhsv(287, 67%, 75%)
CMYKcmyk(14.1%, 66.7%, 0%, 24.7%)
CIE-LABlab(46.28, 59.70, -48.39)
CIE-LCHlch(46.28, 76.85, 320.98°)
OKLaboklab(56.28% 0.1529 -0.1355)
OKLCHoklch(56.28% 0.204 318.4)
XYZxyz(26.8636, 15.4731, 51.4305)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C0 #5BC040
analogous
#6540C0 #A540C0 #C0409B
triadic
#A540C0 #C0A540 #40C0A5
tetradic
#A540C0 #C06540 #5BC040 #409BC0
square
#A540C0 #C06540 #5BC040 #409BC0
split-complementary
#A540C0 #9BC040 #40C065
monochromatic
#562164 #7E3092 #A540C0 #BB6ECF #D09CDE

Accessibility & contrast

On white

5.13
#A540C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#A540C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C0
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C0#FFFFFF#000000##FFFFFF
##A540C01.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B67C4
Deuteranopia (green-blind)
#4771BD
Tritanopia (blue-blind)
#A5577B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a540c0;
/* rgb */ color: rgb(165, 64, 192);
/* oklch */ color: oklch(56.3% 0.204 318.4);
Tailwind
colors: {
  custom: {
    50: '#c37cd4',
    500: '#a540c0',
    950: '#000000',
  },
}
SCSS
$custom: #a540c0;
$custom-light: #c37cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c0",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 287.344,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56279,
    "c": 0.20429,
    "h": 318.4
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#A540C0
secondary
#9DCB91
accent
#DA4E6B
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540C0

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

Preview Lab → · Contrast checker → · Palette generator →

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