#A540C7#A540C7

#A540C7 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.211 H 316.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A540C7
RGBrgb(165, 64, 199)
HSLhsl(285, 55%, 52%)
HSVhsv(285, 68%, 78%)
CMYKcmyk(17.1%, 67.8%, 0%, 22%)
CIE-LABlab(46.70, 61.08, -51.77)
CIE-LCHlch(46.70, 80.07, 319.72°)
OKLaboklab(56.72% 0.1525 -0.1454)
OKLCHoklch(56.72% 0.211 316.4)
XYZxyz(27.6577, 15.7907, 55.6128)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C7 #62C740
analogous
#6240C7 #A540C7 #C740A6
triadic
#A540C7 #C7A540 #40C7A5
tetradic
#A540C7 #C76240 #62C740 #40A6C7
square
#A540C7 #C76240 #62C740 #40A6C7
split-complementary
#A540C7 #A6C740 #40C762
monochromatic
#59206D #802E9C #A540C7 #BB6FD5 #D29FE3

Accessibility & contrast

On white

5.05
#A540C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A540C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C7#FFFFFF#000000##FFFFFF
##A540C71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4172C4
Tritanopia (blue-blind)
#A35A7F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540c7;
/* rgb */ color: rgb(165, 64, 199);
/* oklch */ color: oklch(56.7% 0.211 316.4);
Tailwind
colors: {
  custom: {
    50: '#c37dd9',
    500: '#a540c7',
    950: '#000000',
  },
}
SCSS
$custom: #a540c7;
$custom-light: #c37dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c7",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 284.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.21075,
    "h": 316.4
  },
  "luminance": 0.1579
}

Semantic roles & 50–950 ramp

primary
#A540C7
secondary
#A3CF94
accent
#DE4A6F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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