#8540C4#8540C4

#8540C4 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.198 H 304.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8540C4
RGBrgb(133, 64, 196)
HSLhsl(271, 53%, 51%)
HSVhsv(271, 67%, 77%)
CMYKcmyk(32.1%, 67.3%, 0%, 23.1%)
CIE-LABlab(42.21, 53.58, -57.47)
CIE-LCHlch(42.21, 78.57, 312.99°)
OKLaboklab(52.54% 0.1116 -0.1632)
OKLCHoklch(52.54% 0.198 304.4)
XYZxyz(21.4678, 12.6389, 53.5224)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C4 #7FC440
analogous
#4340C4 #8540C4 #C440C1
triadic
#8540C4 #C48540 #40C485
tetradic
#8540C4 #C44340 #7FC440 #40C1C4
square
#8540C4 #C44340 #7FC440 #40C1C4
split-complementary
#8540C4 #C1C440 #40C443
monochromatic
#462069 #662F98 #8540C4 #A36FD2 #C19EE1

Accessibility & contrast

On white

5.95
#8540C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8540C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540C4#FFFFFF#000000##FFFFFF
##8540C41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0E64C1
Tritanopia (blue-blind)
#795E7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8540c4;
/* rgb */ color: rgb(133, 64, 196);
/* oklch */ color: oklch(52.5% 0.198 304.4);
Tailwind
colors: {
  custom: {
    50: '#ad7ad7',
    500: '#8540c4',
    950: '#000000',
  },
}
SCSS
$custom: #8540c4;
$custom-light: #ad7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c4",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 271.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52536,
    "c": 0.1977,
    "h": 304.4
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#8540C4
secondary
#AFCD93
accent
#DC4C91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8540C4

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

Preview Lab → · Contrast checker → · Palette generator →

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