#8540C1#8540C1

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

Color values

HEX#8540C1
RGBrgb(133, 64, 193)
HSLhsl(272, 51%, 50%)
HSVhsv(272, 67%, 76%)
CMYKcmyk(31.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(42.01, 52.87, -56.06)
CIE-LCHlch(42.01, 77.06, 313.32°)
OKLaboklab(52.32% 0.1119 -0.1591)
OKLCHoklch(52.32% 0.194 305.1)
XYZxyz(21.1298, 12.5037, 51.7420)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C1 #7CC140
analogous
#4440C1 #8540C1 #C140BC
triadic
#8540C1 #C18540 #40C185
tetradic
#8540C1 #C14440 #7CC140 #40BCC1
square
#8540C1 #C14440 #7CC140 #40BCC1
split-complementary
#8540C1 #BCC140 #40C144
monochromatic
#462166 #653094 #8540C1 #A36ED0 #C09CDF

Accessibility & contrast

On white

6.00
#8540C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8540C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540C1
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540C1#FFFFFF#000000##FFFFFF
##8540C11.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1763BE
Tritanopia (blue-blind)
#7A5C7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8540c1;
/* rgb */ color: rgb(133, 64, 193);
/* oklch */ color: oklch(52.3% 0.194 305.1);
Tailwind
colors: {
  custom: {
    50: '#ad7ad4',
    500: '#8540c1',
    950: '#000000',
  },
}
SCSS
$custom: #8540c1;
$custom-light: #ad7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c1",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 272.093,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52321,
    "c": 0.19448,
    "h": 305.1
  },
  "luminance": 0.12504
}

Semantic roles & 50–950 ramp

primary
#8540C1
secondary
#ACCB92
accent
#DA4D8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8540C1

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

Preview Lab → · Contrast checker → · Palette generator →

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