#8540D7#8540D7

#8540D7 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.218 H 299.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8540D7
RGBrgb(133, 64, 215)
HSLhsl(267, 65%, 55%)
HSVhsv(267, 70%, 84%)
CMYKcmyk(38.1%, 70.2%, 0%, 15.7%)
CIE-LABlab(43.59, 58.14, -66.21)
CIE-LCHlch(43.59, 88.11, 311.29°)
OKLaboklab(53.96% 0.1088 -0.1889)
OKLCHoklch(53.96% 0.218 299.9)
XYZxyz(23.7690, 13.5594, 65.6418)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540D7 #92D740
analogous
#4047D7 #8540D7 #D040D7
triadic
#8540D7 #D78540 #40D785
tetradic
#8540D7 #D74047 #92D740 #40D7D0
square
#8540D7 #D74047 #92D740 #40D7D0
split-complementary
#8540D7 #D7D040 #47D740
monochromatic
#4A1B81 #6726B4 #8540D7 #A573E2 #C6A5EC

Accessibility & contrast

On white

5.66
#8540D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8540D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540D7#FFFFFF#000000##FFFFFF
##8540D71.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#0066D4
Tritanopia (blue-blind)
#726587
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8540d7;
/* rgb */ color: rgb(133, 64, 215);
/* oklch */ color: oklch(54.0% 0.218 299.9);
Tailwind
colors: {
  custom: {
    50: '#af7ae4',
    500: '#8540d7',
    950: '#000000',
  },
}
SCSS
$custom: #8540d7;
$custom-light: #af7ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#8540d7",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 267.417,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53956,
    "c": 0.21797,
    "h": 299.9
  },
  "luminance": 0.1356
}

Semantic roles & 50–950 ramp

primary
#8540D7
secondary
#BCD99A
accent
#E83F9B
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8540D7

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

Preview Lab → · Contrast checker → · Palette generator →

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