#8540A4#8540A4

#8540A4 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.4% C 0.163 H 313.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8540A4
RGBrgb(133, 64, 164)
HSLhsl(281, 44%, 45%)
HSVhsv(281, 61%, 64%)
CMYKcmyk(18.9%, 61%, 0%, 35.7%)
CIE-LABlab(40.14, 46.25, -41.95)
CIE-LCHlch(40.14, 62.44, 317.79°)
OKLaboklab(50.38% 0.1133 -0.1177)
OKLCHoklch(50.38% 0.163 313.9)
XYZxyz(18.2060, 11.3342, 36.3434)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540A4 #5FA440
analogous
#5340A4 #8540A4 #A44091
triadic
#8540A4 #A48540 #40A485
tetradic
#8540A4 #A45340 #5FA440 #4091A4
square
#8540A4 #A45340 #5FA440 #4091A4
split-complementary
#8540A4 #91A440 #40A453
monochromatic
#3E1E4C #612F78 #8540A4 #A360C1 #BD8CD2

Accessibility & contrast

On white

6.43
#8540A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8540A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540A4
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540A4#FFFFFF#000000##FFFFFF
##8540A41.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#3C60A2
Tritanopia (blue-blind)
#82526C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8540a4;
/* rgb */ color: rgb(133, 64, 164);
/* oklch */ color: oklch(50.4% 0.163 313.9);
Tailwind
colors: {
  custom: {
    50: '#ab79bf',
    500: '#8540a4',
    950: '#000000',
  },
}
SCSS
$custom: #8540a4;
$custom-light: #ab79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8540a4",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 281.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50375,
    "c": 0.16337,
    "h": 313.9
  },
  "luminance": 0.11334
}

Semantic roles & 50–950 ramp

primary
#8540A4
secondary
#95BD83
accent
#D4547C
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8540A4

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

Preview Lab → · Contrast checker → · Palette generator →

#8540A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva