#A540CE#A540CE

#A540CE is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.217 H 314.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A540CE
RGBrgb(165, 64, 206)
HSLhsl(283, 59%, 53%)
HSVhsv(283, 69%, 81%)
CMYKcmyk(19.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(47.14, 62.48, -55.11)
CIE-LCHlch(47.14, 83.31, 318.59°)
OKLaboklab(57.17% 0.152 -0.1552)
OKLCHoklch(57.17% 0.217 314.4)
XYZxyz(28.4892, 16.1233, 59.9919)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CE #69CE40
analogous
#5E40CE #A540CE #CE40B0
triadic
#A540CE #CEA540 #40CEA5
tetradic
#A540CE #CE5E40 #69CE40 #40B0CE
square
#A540CE #CE5E40 #69CE40 #40B0CE
split-complementary
#A540CE #B0CE40 #40CE5E
monochromatic
#5C1E75 #822BA6 #A540CE #BC71DA #D3A1E7

Accessibility & contrast

On white

4.97
#A540CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#A540CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540CE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CE#FFFFFF#000000##FFFFFF
##A540CE1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#3A72CB
Tritanopia (blue-blind)
#A15D82
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a540ce;
/* rgb */ color: rgb(165, 64, 206);
/* oklch */ color: oklch(57.2% 0.217 314.4);
Tailwind
colors: {
  custom: {
    50: '#c47dde',
    500: '#a540ce',
    950: '#000000',
  },
}
SCSS
$custom: #a540ce;
$custom-light: #c47dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a540ce",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 282.676,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57171,
    "c": 0.21726,
    "h": 314.4
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#A540CE
secondary
#A8D496
accent
#E24573
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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