#8540B1#8540B1

#8540B1 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.177 H 309.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8540B1
RGBrgb(133, 64, 177)
HSLhsl(277, 47%, 47%)
HSVhsv(277, 64%, 69%)
CMYKcmyk(24.9%, 63.8%, 0%, 30.6%)
CIE-LABlab(40.94, 49.16, -48.38)
CIE-LCHlch(40.94, 68.97, 315.45°)
OKLaboklab(51.22% 0.1131 -0.1365)
OKLCHoklch(51.22% 0.177 309.6)
XYZxyz(19.4405, 11.8280, 42.8454)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540B1 #6CB140
analogous
#4C40B1 #8540B1 #B140A5
triadic
#8540B1 #B18540 #40B185
tetradic
#8540B1 #B14C40 #6CB140 #40A5B1
square
#8540B1 #B14C40 #6CB140 #40A5B1
split-complementary
#8540B1 #A5B140 #40B14C
monochromatic
#411F57 #633084 #8540B1 #A266C8 #BD93D8

Accessibility & contrast

On white

6.24
#8540B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8540B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540B1
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540B1#FFFFFF#000000##FFFFFF
##8540B11.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB4
Deuteranopia (green-blind)
#3062AE
Tritanopia (blue-blind)
#7F5773
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8540b1;
/* rgb */ color: rgb(133, 64, 177);
/* oklch */ color: oklch(51.2% 0.177 309.6);
Tailwind
colors: {
  custom: {
    50: '#ac79c9',
    500: '#8540b1',
    950: '#000000',
  },
}
SCSS
$custom: #8540b1;
$custom-light: #ac79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8540b1",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 276.637,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51216,
    "c": 0.17728,
    "h": 309.6
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#8540B1
secondary
#A0C389
accent
#D75185
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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