#A540CB#A540CB

#A540CB is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.214 H 315.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#A540CB
RGBrgb(165, 64, 203)
HSLhsl(284, 57%, 52%)
HSVhsv(284, 68%, 80%)
CMYKcmyk(18.7%, 68.5%, 0%, 20.4%)
CIE-LABlab(46.95, 61.88, -53.68)
CIE-LCHlch(46.95, 81.92, 319.06°)
OKLaboklab(56.98% 0.1523 -0.151)
OKLCHoklch(56.98% 0.214 315.2)
XYZxyz(28.1282, 15.9789, 58.0909)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540CB #66CB40
analogous
#5F40CB #A540CB #CB40AC
triadic
#A540CB #CBA540 #40CBA5
tetradic
#A540CB #CB5F40 #66CB40 #40ACCB
square
#A540CB #CB5F40 #66CB40 #40ACCB
split-complementary
#A540CB #ACCB40 #40CB5F
monochromatic
#5B1F72 #822CA2 #A540CB #BC70D8 #D2A0E5

Accessibility & contrast

On white

5.01
#A540CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#A540CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540CB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540CB#FFFFFF#000000##FFFFFF
##A540CB1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#3D72C8
Tritanopia (blue-blind)
#A25C81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a540cb;
/* rgb */ color: rgb(165, 64, 203);
/* oklch */ color: oklch(57.0% 0.214 315.2);
Tailwind
colors: {
  custom: {
    50: '#c47ddb',
    500: '#a540cb',
    950: '#000000',
  },
}
SCSS
$custom: #a540cb;
$custom-light: #c47ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a540cb",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 283.597,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56976,
    "c": 0.21447,
    "h": 315.2
  },
  "luminance": 0.15978
}

Semantic roles & 50–950 ramp

primary
#A540CB
secondary
#A6D295
accent
#E04771
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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