#8540B3#8540B3

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

Color values

HEX#8540B3
RGBrgb(133, 64, 179)
HSLhsl(276, 47%, 48%)
HSVhsv(276, 64%, 70%)
CMYKcmyk(25.7%, 64.2%, 0%, 29.8%)
CIE-LABlab(41.07, 49.62, -49.36)
CIE-LCHlch(41.07, 69.98, 315.15°)
OKLaboklab(51.35% 0.113 -0.1394)
OKLCHoklch(51.35% 0.179 309)
XYZxyz(19.6413, 11.9083, 43.9029)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540B3 #6EB340
analogous
#4C40B3 #8540B3 #B340A7
triadic
#8540B3 #B38540 #40B385
tetradic
#8540B3 #B34C40 #6EB340 #40A7B3
square
#8540B3 #B34C40 #6EB340 #40A7B3
split-complementary
#8540B3 #A7B340 #40B34C
monochromatic
#422059 #643086 #8540B3 #A267C9 #BE94D9

Accessibility & contrast

On white

6.21
#8540B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8540B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540B3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540B3#FFFFFF#000000##FFFFFF
##8540B31.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#7E5774
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8540b3;
/* rgb */ color: rgb(133, 64, 179);
/* oklch */ color: oklch(51.3% 0.179 309.0);
Tailwind
colors: {
  custom: {
    50: '#ac79ca',
    500: '#8540b3',
    950: '#000000',
  },
}
SCSS
$custom: #8540b3;
$custom-light: #ac79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8540b3",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 276,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5135,
    "c": 0.17944,
    "h": 309
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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