#A540BD#A540BD

#A540BD is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.202 H 319.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#A540BD
RGBrgb(165, 64, 189)
HSLhsl(288, 49%, 50%)
HSVhsv(288, 66%, 74%)
CMYKcmyk(12.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(46.10, 59.12, -46.92)
CIE-LCHlch(46.10, 75.48, 321.56°)
OKLaboklab(56.09% 0.1529 -0.1312)
OKLCHoklch(56.09% 0.202 319.4)
XYZxyz(26.5346, 15.3415, 49.6978)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BD #58BD40
analogous
#6740BD #A540BD #BD4097
triadic
#A540BD #BDA540 #40BDA5
tetradic
#A540BD #BD6740 #58BD40 #4097BD
square
#A540BD #BD6740 #58BD40 #4097BD
split-complementary
#A540BD #97BD40 #40BD67
monochromatic
#552162 #7D318F #A540BD #BB6DCD #D09ADD

Accessibility & contrast

On white

5.16
#A540BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#A540BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BD
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BD#FFFFFF#000000##FFFFFF
##A540BD1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1466C1
Deuteranopia (green-blind)
#4971BA
Tritanopia (blue-blind)
#A55679
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540bd;
/* rgb */ color: rgb(165, 64, 189);
/* oklch */ color: oklch(56.1% 0.202 319.4);
Tailwind
colors: {
  custom: {
    50: '#c37cd1',
    500: '#a540bd',
    950: '#000000',
  },
}
SCSS
$custom: #a540bd;
$custom-light: #c37cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a540bd",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 288.48,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56095,
    "c": 0.20154,
    "h": 319.4
  },
  "luminance": 0.1534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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