#A540CF#A540CF

#A540CF is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.218 H 314.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A540CF
RGBrgb(165, 64, 207)
HSLhsl(282, 60%, 53%)
HSVhsv(282, 69%, 81%)
CMYKcmyk(20.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(47.20, 62.68, -55.58)
CIE-LCHlch(47.20, 83.78, 318.44°)
OKLaboklab(57.24% 0.1519 -0.1566)
OKLCHoklch(57.24% 0.218 314.1)
XYZxyz(28.6110, 16.1721, 60.6338)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CF #6ACF40
analogous
#5D40CF #A540CF #CF40B1
triadic
#A540CF #CFA540 #40CFA5
tetradic
#A540CF #CF5D40 #6ACF40 #40B1CF
square
#A540CF #CF5D40 #6ACF40 #40B1CF
split-complementary
#A540CF #B1CF40 #40CF5D
monochromatic
#5D1E77 #832AA8 #A540CF #BC71DB #D3A2E8

Accessibility & contrast

On white

4.96
#A540CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#A540CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540CF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CF#FFFFFF#000000##FFFFFF
##A540CF1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#3872CC
Tritanopia (blue-blind)
#A15D83
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a540cf;
/* rgb */ color: rgb(165, 64, 207);
/* oklch */ color: oklch(57.2% 0.218 314.1);
Tailwind
colors: {
  custom: {
    50: '#c47dde',
    500: '#a540cf',
    950: '#000000',
  },
}
SCSS
$custom: #a540cf;
$custom-light: #c47dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a540cf",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 282.378,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57237,
    "c": 0.2182,
    "h": 314.1
  },
  "luminance": 0.16171
}

Semantic roles & 50–950 ramp

primary
#A540CF
secondary
#A9D497
accent
#E34573
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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