#A540BC#A540BC

#A540BC is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.0% C 0.201 H 319.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A540BC
RGBrgb(165, 64, 188)
HSLhsl(289, 49%, 49%)
HSVhsv(289, 66%, 74%)
CMYKcmyk(12.2%, 66%, 0%, 26.3%)
CIE-LABlab(46.04, 58.93, -46.43)
CIE-LCHlch(46.04, 75.02, 321.76°)
OKLaboklab(56.03% 0.153 -0.1298)
OKLCHoklch(56.03% 0.201 319.7)
XYZxyz(26.4264, 15.2982, 49.1281)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BC #57BC40
analogous
#6740BC #A540BC #BC4095
triadic
#A540BC #BCA540 #40BCA5
tetradic
#A540BC #BC6740 #57BC40 #4095BC
square
#A540BC #BC6740 #57BC40 #4095BC
split-complementary
#A540BC #95BC40 #40BC67
monochromatic
#552161 #7D308E #A540BC #BB6CCD #D09ADD

Accessibility & contrast

On white

5.17
#A540BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A540BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BC#FFFFFF#000000##FFFFFF
##A540BC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666C0
Deuteranopia (green-blind)
#4A71B9
Tritanopia (blue-blind)
#A55679
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540bc;
/* rgb */ color: rgb(165, 64, 188);
/* oklch */ color: oklch(56.0% 0.201 319.7);
Tailwind
colors: {
  custom: {
    50: '#c37cd1',
    500: '#a540bc',
    950: '#000000',
  },
}
SCSS
$custom: #a540bc;
$custom-light: #c37cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a540bc",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 288.871,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56034,
    "c": 0.20062,
    "h": 319.7
  },
  "luminance": 0.15297
}

Semantic roles & 50–950 ramp

primary
#A540BC
secondary
#9AC98F
accent
#D94F69
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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