#8540BD#8540BD

#8540BD is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.190 H 306.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8540BD
RGBrgb(133, 64, 189)
HSLhsl(273, 49%, 50%)
HSVhsv(273, 66%, 74%)
CMYKcmyk(29.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(41.73, 51.93, -54.17)
CIE-LCHlch(41.73, 75.04, 313.79°)
OKLaboklab(52.04% 0.1123 -0.1535)
OKLCHoklch(52.04% 0.19 306.2)
XYZxyz(20.6896, 12.3277, 49.4238)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540BD #78BD40
analogous
#4740BD #8540BD #BD40B7
triadic
#8540BD #BD8540 #40BD85
tetradic
#8540BD #BD4740 #78BD40 #40B7BD
square
#8540BD #BD4740 #78BD40 #40B7BD
split-complementary
#8540BD #B7BD40 #40BD47
monochromatic
#452162 #65318F #8540BD #A26DCD #BF9ADD

Accessibility & contrast

On white

6.06
#8540BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8540BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540BD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540BD#FFFFFF#000000##FFFFFF
##8540BD1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#2063BA
Tritanopia (blue-blind)
#7B5B79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8540bd;
/* rgb */ color: rgb(133, 64, 189);
/* oklch */ color: oklch(52.0% 0.190 306.2);
Tailwind
colors: {
  custom: {
    50: '#ad79d2',
    500: '#8540bd',
    950: '#000000',
  },
}
SCSS
$custom: #8540bd;
$custom-light: #ad79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8540bd",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 273.12,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52038,
    "c": 0.19018,
    "h": 306.2
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#8540BD
secondary
#A9C990
accent
#D94F8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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