#8540C0#8540C0

#8540C0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.193 H 305.4°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8540C0
RGBrgb(133, 64, 192)
HSLhsl(272, 50%, 50%)
HSVhsv(272, 67%, 75%)
CMYKcmyk(30.7%, 66.7%, 0%, 24.7%)
CIE-LABlab(41.94, 52.63, -55.59)
CIE-LCHlch(41.94, 76.55, 313.43°)
OKLaboklab(52.25% 0.112 -0.1577)
OKLCHoklch(52.25% 0.193 305.4)
XYZxyz(21.0186, 12.4593, 51.1565)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C0 #7BC040
analogous
#4540C0 #8540C0 #C040BB
triadic
#8540C0 #C08540 #40C085
tetradic
#8540C0 #C04540 #7BC040 #40BBC0
square
#8540C0 #C04540 #7BC040 #40BBC0
split-complementary
#8540C0 #BBC040 #40C045
monochromatic
#452164 #653092 #8540C0 #A26ECF #C09CDE

Accessibility & contrast

On white

6.01
#8540C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8540C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540C0#FFFFFF#000000##FFFFFF
##8540C01.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#1A63BD
Tritanopia (blue-blind)
#7A5C7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8540c0;
/* rgb */ color: rgb(133, 64, 192);
/* oklch */ color: oklch(52.3% 0.193 305.4);
Tailwind
colors: {
  custom: {
    50: '#ad79d4',
    500: '#8540c0',
    950: '#000000',
  },
}
SCSS
$custom: #8540c0;
$custom-light: #ad79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c0",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 272.344,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.1934,
    "h": 305.4
  },
  "luminance": 0.12459
}

Semantic roles & 50–950 ramp

primary
#8540C0
secondary
#ACCB91
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8540C0

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

Preview Lab → · Contrast checker → · Palette generator →

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