#8540CD#8540CD

#8540CD is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.207 H 302.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8540CD
RGBrgb(133, 64, 205)
HSLhsl(269, 59%, 53%)
HSVhsv(269, 69%, 80%)
CMYKcmyk(35.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(42.86, 55.72, -61.65)
CIE-LCHlch(42.86, 83.10, 312.11°)
OKLaboklab(53.2% 0.1104 -0.1755)
OKLCHoklch(53.2% 0.207 302.2)
XYZxyz(22.5231, 13.0611, 59.0802)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540CD #88CD40
analogous
#4041CD #8540CD #CC40CD
triadic
#8540CD #CD8540 #40CD85
tetradic
#8540CD #CD4041 #88CD40 #40CDCC
square
#8540CD #CD4041 #88CD40 #40CDCC
split-complementary
#8540CD #CDCC40 #41CD40
monochromatic
#481E74 #672BA5 #8540CD #A471DA #C3A1E6

Accessibility & contrast

On white

5.81
#8540CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8540CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540CD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540CD#FFFFFF#000000##FFFFFF
##8540CD1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#766182
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8540cd;
/* rgb */ color: rgb(133, 64, 205);
/* oklch */ color: oklch(53.2% 0.207 302.2);
Tailwind
colors: {
  custom: {
    50: '#ae7add',
    500: '#8540cd',
    950: '#000000',
  },
}
SCSS
$custom: #8540cd;
$custom-light: #ae7add;
$custom-dark: #000000;
JSON
{
  "hex": "#8540cd",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 269.362,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53197,
    "c": 0.20732,
    "h": 302.2
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#8540CD
secondary
#B5D396
accent
#E24696
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8540CD

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

Preview Lab → · Contrast checker → · Palette generator →

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