#8540BB#8540BB

#8540BB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.188 H 306.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8540BB
RGBrgb(133, 64, 187)
HSLhsl(274, 49%, 49%)
HSVhsv(274, 66%, 73%)
CMYKcmyk(28.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(41.60, 51.46, -53.21)
CIE-LCHlch(41.60, 74.03, 314.04°)
OKLaboklab(51.9% 0.1125 -0.1507)
OKLCHoklch(51.9% 0.188 306.7)
XYZxyz(20.4740, 12.2414, 48.2883)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540BB #76BB40
analogous
#4840BB #8540BB #BB40B4
triadic
#8540BB #BB8540 #40BB85
tetradic
#8540BB #BB4840 #76BB40 #40B4BB
square
#8540BB #BB4840 #76BB40 #40B4BB
split-complementary
#8540BB #B4BB40 #40BB48
monochromatic
#442160 #65308D #8540BB #A26CCD #BF99DC

Accessibility & contrast

On white

6.09
#8540BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8540BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540BB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540BB#FFFFFF#000000##FFFFFF
##8540BB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2363B8
Tritanopia (blue-blind)
#7C5A78
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8540bb;
/* rgb */ color: rgb(133, 64, 187);
/* oklch */ color: oklch(51.9% 0.188 306.7);
Tailwind
colors: {
  custom: {
    50: '#ad79d0',
    500: '#8540bb',
    950: '#000000',
  },
}
SCSS
$custom: #8540bb;
$custom-light: #ad79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8540bb",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 273.659,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51898,
    "c": 0.18803,
    "h": 306.7
  },
  "luminance": 0.12241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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