#A540B9#A540B9

#A540B9 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.198 H 320.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A540B9
RGBrgb(165, 64, 185)
HSLhsl(290, 49%, 49%)
HSVhsv(290, 65%, 73%)
CMYKcmyk(10.8%, 65.4%, 0%, 27.5%)
CIE-LABlab(45.87, 58.35, -44.96)
CIE-LCHlch(45.87, 73.66, 322.39°)
OKLaboklab(55.85% 0.153 -0.1255)
OKLCHoklch(55.85% 0.198 320.6)
XYZxyz(26.1064, 15.1702, 47.4426)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B9 #54B940
analogous
#6940B9 #A540B9 #B94091
triadic
#A540B9 #B9A540 #40B9A5
tetradic
#A540B9 #B96940 #54B940 #4091B9
square
#A540B9 #B96940 #54B940 #4091B9
split-complementary
#A540B9 #91B940 #40B969
monochromatic
#54215E #7C308C #A540B9 #BC6BCC #D098DB

Accessibility & contrast

On white

5.21
#A540B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A540B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B9#FFFFFF#000000##FFFFFF
##A540B91.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BD
Deuteranopia (green-blind)
#4C70B6
Tritanopia (blue-blind)
#A65577
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540b9;
/* rgb */ color: rgb(165, 64, 185);
/* oklch */ color: oklch(55.9% 0.198 320.6);
Tailwind
colors: {
  custom: {
    50: '#c37cce',
    500: '#a540b9',
    950: '#000000',
  },
}
SCSS
$custom: #a540b9;
$custom-light: #c37cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b9",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 290.083,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55853,
    "c": 0.19789,
    "h": 320.6
  },
  "luminance": 0.15169
}

Semantic roles & 50–950 ramp

primary
#A540B9
secondary
#97C78E
accent
#D85066
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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