#8540AA#8540AA

#8540AA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.170 H 311.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8540AA
RGBrgb(133, 64, 170)
HSLhsl(279, 45%, 46%)
HSVhsv(279, 62%, 67%)
CMYKcmyk(21.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(40.50, 47.58, -44.94)
CIE-LCHlch(40.50, 65.45, 316.63°)
OKLaboklab(50.76% 0.1133 -0.1264)
OKLCHoklch(50.76% 0.17 311.9)
XYZxyz(18.7606, 11.5561, 39.2647)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540AA #65AA40
analogous
#5040AA #8540AA #AA409A
triadic
#8540AA #AA8540 #40AA85
tetradic
#8540AA #AA5040 #65AA40 #409AAA
square
#8540AA #AA5040 #65AA40 #409AAA
split-complementary
#8540AA #9AAA40 #40AA50
monochromatic
#3F1F51 #622F7E #8540AA #A263C4 #BD8FD5

Accessibility & contrast

On white

6.34
#8540AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8540AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540AA#FFFFFF#000000##FFFFFF
##8540AA1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155CAD
Deuteranopia (green-blind)
#3761A7
Tritanopia (blue-blind)
#81546F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8540aa;
/* rgb */ color: rgb(133, 64, 170);
/* oklch */ color: oklch(50.8% 0.170 311.9);
Tailwind
colors: {
  custom: {
    50: '#ac79c4',
    500: '#8540aa',
    950: '#000000',
  },
}
SCSS
$custom: #8540aa;
$custom-light: #ac79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8540aa",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 279.057,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50756,
    "c": 0.16978,
    "h": 311.9
  },
  "luminance": 0.11556
}

Semantic roles & 50–950 ramp

primary
#8540AA
secondary
#9AC086
accent
#D55380
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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