#8540B2#8540B2

#8540B2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.178 H 309.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8540B2
RGBrgb(133, 64, 178)
HSLhsl(276, 47%, 47%)
HSVhsv(276, 64%, 70%)
CMYKcmyk(25.3%, 64%, 0%, 30.2%)
CIE-LABlab(41.01, 49.39, -48.87)
CIE-LCHlch(41.01, 69.48, 315.30°)
OKLaboklab(51.28% 0.1131 -0.1379)
OKLCHoklch(51.28% 0.178 309.3)
XYZxyz(19.5406, 11.8680, 43.3722)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540B2 #6DB240
analogous
#4C40B2 #8540B2 #B240A6
triadic
#8540B2 #B28540 #40B285
tetradic
#8540B2 #B24C40 #6DB240 #40A6B2
square
#8540B2 #B24C40 #6DB240 #40A6B2
split-complementary
#8540B2 #A6B240 #40B24C
monochromatic
#422058 #633085 #8540B2 #A267C8 #BD94D8

Accessibility & contrast

On white

6.22
#8540B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8540B2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540B2#FFFFFF#000000##FFFFFF
##8540B21.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#2F62AF
Tritanopia (blue-blind)
#7F5773
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8540b2;
/* rgb */ color: rgb(133, 64, 178);
/* oklch */ color: oklch(51.3% 0.178 309.3);
Tailwind
colors: {
  custom: {
    50: '#ac79ca',
    500: '#8540b2',
    950: '#000000',
  },
}
SCSS
$custom: #8540b2;
$custom-light: #ac79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8540b2",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 276.316,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51282,
    "c": 0.17836,
    "h": 309.3
  },
  "luminance": 0.11868
}

Semantic roles & 50–950 ramp

primary
#8540B2
secondary
#A1C48A
accent
#D75186
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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