#8540B7#8540B7

#8540B7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.184 H 307.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8540B7
RGBrgb(133, 64, 183)
HSLhsl(275, 48%, 48%)
HSVhsv(275, 65%, 72%)
CMYKcmyk(27.3%, 65%, 0%, 28.2%)
CIE-LABlab(41.33, 50.53, -51.29)
CIE-LCHlch(41.33, 72.01, 314.57°)
OKLaboklab(51.62% 0.1128 -0.1451)
OKLCHoklch(51.62% 0.184 307.9)
XYZxyz(20.0517, 12.0725, 46.0645)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540B7 #72B740
analogous
#4940B7 #8540B7 #B740AD
triadic
#8540B7 #B78540 #40B785
tetradic
#8540B7 #B74940 #72B740 #40ADB7
square
#8540B7 #B74940 #72B740 #40ADB7
split-complementary
#8540B7 #ADB740 #40B749
monochromatic
#43205C #64308A #8540B7 #A269CB #BE97DB

Accessibility & contrast

On white

6.15
#8540B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8540B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540B7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540B7#FFFFFF#000000##FFFFFF
##8540B71.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2962B4
Tritanopia (blue-blind)
#7D5976
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8540b7;
/* rgb */ color: rgb(133, 64, 183);
/* oklch */ color: oklch(51.6% 0.184 307.9);
Tailwind
colors: {
  custom: {
    50: '#ac79cd',
    500: '#8540b7',
    950: '#000000',
  },
}
SCSS
$custom: #8540b7;
$custom-light: #ac79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8540b7",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 274.79,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51621,
    "c": 0.18373,
    "h": 307.9
  },
  "luminance": 0.12072
}

Semantic roles & 50–950 ramp

primary
#8540B7
secondary
#A5C68D
accent
#D85089
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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