#8540D8#8540D8

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

Color values

HEX#8540D8
RGBrgb(133, 64, 216)
HSLhsl(267, 66%, 55%)
HSVhsv(267, 70%, 85%)
CMYKcmyk(38.4%, 70.4%, 0%, 15.3%)
CIE-LABlab(43.67, 58.38, -66.66)
CIE-LCHlch(43.67, 88.61, 311.21°)
OKLaboklab(54.03% 0.1086 -0.1902)
OKLCHoklch(54.03% 0.219 299.7)
XYZxyz(23.8978, 13.6110, 66.3206)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540D8 #93D840
analogous
#4047D8 #8540D8 #D140D8
triadic
#8540D8 #D88540 #40D885
tetradic
#8540D8 #D84047 #93D840 #40D8D1
square
#8540D8 #D84047 #93D840 #40D8D1
split-complementary
#8540D8 #D8D140 #47D840
monochromatic
#4A1B83 #6725B6 #8540D8 #A573E2 #C6A6ED

Accessibility & contrast

On white

5.64
#8540D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8540D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540D8#FFFFFF#000000##FFFFFF
##8540D81.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#0066D5
Tritanopia (blue-blind)
#726588
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8540d8;
/* rgb */ color: rgb(133, 64, 216);
/* oklch */ color: oklch(54.0% 0.219 299.7);
Tailwind
colors: {
  custom: {
    50: '#af7ae5',
    500: '#8540d8',
    950: '#000000',
  },
}
SCSS
$custom: #8540d8;
$custom-light: #af7ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#8540d8",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 267.237,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54033,
    "c": 0.21903,
    "h": 299.7
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

primary
#8540D8
secondary
#BDDA9A
accent
#E93F9C
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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