#8540C5#8540C5

#8540C5 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.199 H 304.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8540C5
RGBrgb(133, 64, 197)
HSLhsl(271, 53%, 51%)
HSVhsv(271, 68%, 77%)
CMYKcmyk(32.5%, 67.5%, 0%, 22.7%)
CIE-LABlab(42.28, 53.81, -57.94)
CIE-LCHlch(42.28, 79.08, 312.88°)
OKLaboklab(52.61% 0.1115 -0.1646)
OKLCHoklch(52.61% 0.199 304.1)
XYZxyz(21.5820, 12.6846, 54.1239)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C5 #80C540
analogous
#4240C5 #8540C5 #C540C2
triadic
#8540C5 #C58540 #40C585
tetradic
#8540C5 #C54240 #80C540 #40C2C5
square
#8540C5 #C54240 #80C540 #40C2C5
split-complementary
#8540C5 #C2C540 #40C542
monochromatic
#47206A #662F99 #8540C5 #A36FD3 #C19EE2

Accessibility & contrast

On white

5.94
#8540C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8540C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8540C5#FFFFFF#000000##FFFFFF
##8540C51.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8540c5;
/* rgb */ color: rgb(133, 64, 197);
/* oklch */ color: oklch(52.6% 0.199 304.1);
Tailwind
colors: {
  custom: {
    50: '#ad7ad7',
    500: '#8540c5',
    950: '#000000',
  },
}
SCSS
$custom: #8540c5;
$custom-light: #ad7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c5",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 271.128,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52609,
    "c": 0.19877,
    "h": 304.1
  },
  "luminance": 0.12685
}

Semantic roles & 50–950 ramp

primary
#8540C5
secondary
#AFCE93
accent
#DD4B91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8540C5

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

Preview Lab → · Contrast checker → · Palette generator →

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