#8540C8#8540C8

#8540C8 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.202 H 303.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8540C8
RGBrgb(133, 64, 200)
HSLhsl(270, 55%, 52%)
HSVhsv(270, 68%, 78%)
CMYKcmyk(33.5%, 68%, 0%, 21.6%)
CIE-LABlab(42.50, 54.53, -59.34)
CIE-LCHlch(42.50, 80.59, 312.58°)
OKLaboklab(52.83% 0.1111 -0.1687)
OKLCHoklch(52.83% 0.202 303.4)
XYZxyz(21.9292, 12.8235, 55.9523)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C8 #83C840
analogous
#4140C8 #8540C8 #C840C7
triadic
#8540C8 #C88540 #40C885
tetradic
#8540C8 #C84140 #83C840 #40C7C8
square
#8540C8 #C84140 #83C840 #40C7C8
split-complementary
#8540C8 #C7C840 #40C841
monochromatic
#47206E #662D9D #8540C8 #A370D6 #C29FE3

Accessibility & contrast

On white

5.89
#8540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8540C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540C8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540C8#FFFFFF#000000##FFFFFF
##8540C81.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#785F7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8540c8;
/* rgb */ color: rgb(133, 64, 200);
/* oklch */ color: oklch(52.8% 0.202 303.4);
Tailwind
colors: {
  custom: {
    50: '#ae7ada',
    500: '#8540c8',
    950: '#000000',
  },
}
SCSS
$custom: #8540c8;
$custom-light: #ae7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c8",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 270.441,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52828,
    "c": 0.20198,
    "h": 303.4
  },
  "luminance": 0.12823
}

Semantic roles & 50–950 ramp

primary
#8540C8
secondary
#B1D094
accent
#DF4993
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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