#8540BC#8540BC

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

Color values

HEX#8540BC
RGBrgb(133, 64, 188)
HSLhsl(273, 49%, 49%)
HSVhsv(273, 66%, 74%)
CMYKcmyk(29.3%, 66%, 0%, 26.3%)
CIE-LABlab(41.66, 51.70, -53.69)
CIE-LCHlch(41.66, 74.53, 313.92°)
OKLaboklab(51.97% 0.1124 -0.1521)
OKLCHoklch(51.97% 0.189 306.5)
XYZxyz(20.5814, 12.2844, 48.8541)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540BC #77BC40
analogous
#4740BC #8540BC #BC40B5
triadic
#8540BC #BC8540 #40BC85
tetradic
#8540BC #BC4740 #77BC40 #40B5BC
square
#8540BC #BC4740 #77BC40 #40B5BC
split-complementary
#8540BC #B5BC40 #40BC47
monochromatic
#442161 #65308E #8540BC #A26CCD #BF9ADD

Accessibility & contrast

On white

6.07
#8540BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8540BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540BC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540BC#FFFFFF#000000##FFFFFF
##8540BC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#2263B9
Tritanopia (blue-blind)
#7C5B78
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8540bc;
/* rgb */ color: rgb(133, 64, 188);
/* oklch */ color: oklch(52.0% 0.189 306.5);
Tailwind
colors: {
  custom: {
    50: '#ad79d1',
    500: '#8540bc',
    950: '#000000',
  },
}
SCSS
$custom: #8540bc;
$custom-light: #ad79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8540bc",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 273.387,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.1891,
    "h": 306.5
  },
  "luminance": 0.12284
}

Semantic roles & 50–950 ramp

primary
#8540BC
secondary
#A9C98F
accent
#D94F8C
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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