#A540B7#A540B7

#A540B7 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.196 H 321.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#A540B7
RGBrgb(165, 64, 183)
HSLhsl(291, 48%, 48%)
HSVhsv(291, 65%, 72%)
CMYKcmyk(9.8%, 65%, 0%, 28.2%)
CIE-LABlab(45.75, 57.97, -43.97)
CIE-LCHlch(45.75, 72.76, 322.82°)
OKLaboklab(55.73% 0.153 -0.1226)
OKLCHoklch(55.73% 0.196 321.3)
XYZxyz(25.8967, 15.0863, 46.3384)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B7 #52B740
analogous
#6940B7 #A540B7 #B7408D
triadic
#A540B7 #B7A540 #40B7A5
tetradic
#A540B7 #B76940 #52B740 #408DB7
square
#A540B7 #B76940 #52B740 #408DB7
split-complementary
#A540B7 #8DB740 #40B769
monochromatic
#53205C #7C308A #A540B7 #BC69CB #D097DB

Accessibility & contrast

On white

5.23
#A540B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A540B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B7#FFFFFF#000000##FFFFFF
##A540B71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BB
Deuteranopia (green-blind)
#4D70B4
Tritanopia (blue-blind)
#A65476
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b7;
/* rgb */ color: rgb(165, 64, 183);
/* oklch */ color: oklch(55.7% 0.196 321.3);
Tailwind
colors: {
  custom: {
    50: '#c37ccd',
    500: '#a540b7',
    950: '#000000',
  },
}
SCSS
$custom: #a540b7;
$custom-light: #c37ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b7",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 290.924,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55734,
    "c": 0.19607,
    "h": 321.3
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#A540B7
secondary
#95C68D
accent
#D85065
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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