#A540C2#A540C2

#A540C2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.4% C 0.206 H 317.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#A540C2
RGBrgb(165, 64, 194)
HSLhsl(287, 52%, 51%)
HSVhsv(287, 67%, 76%)
CMYKcmyk(14.9%, 67%, 0%, 23.9%)
CIE-LABlab(46.39, 60.09, -49.36)
CIE-LCHlch(46.39, 77.76, 320.60°)
OKLaboklab(56.4% 0.1528 -0.1384)
OKLCHoklch(56.4% 0.206 317.8)
XYZxyz(27.0867, 15.5623, 52.6055)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540C2 #5DC240
analogous
#6440C2 #A540C2 #C2409E
triadic
#A540C2 #C2A540 #40C2A5
tetradic
#A540C2 #C26440 #5DC240 #409EC2
square
#A540C2 #C26440 #5DC240 #409EC2
split-complementary
#A540C2 #9EC240 #40C264
monochromatic
#572167 #7F3095 #A540C2 #BB6ED1 #D19DE0

Accessibility & contrast

On white

5.11
#A540C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#A540C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540C2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540C2#FFFFFF#000000##FFFFFF
##A540C21.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0267C6
Deuteranopia (green-blind)
#4571BF
Tritanopia (blue-blind)
#A4587C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a540c2;
/* rgb */ color: rgb(165, 64, 194);
/* oklch */ color: oklch(56.4% 0.206 317.8);
Tailwind
colors: {
  custom: {
    50: '#c37cd5',
    500: '#a540c2',
    950: '#000000',
  },
}
SCSS
$custom: #a540c2;
$custom-light: #c37cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a540c2",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 286.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56403,
    "c": 0.20613,
    "h": 317.8
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#A540C2
secondary
#9FCC92
accent
#DB4D6C
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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