#8540BA#8540BA

#8540BA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.187 H 307.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8540BA
RGBrgb(133, 64, 186)
HSLhsl(274, 49%, 49%)
HSVhsv(274, 66%, 73%)
CMYKcmyk(28.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(41.53, 51.23, -52.74)
CIE-LCHlch(41.53, 73.52, 314.17°)
OKLaboklab(51.83% 0.1126 -0.1493)
OKLCHoklch(51.83% 0.187 307)
XYZxyz(20.3673, 12.1987, 47.7265)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540BA #75BA40
analogous
#4840BA #8540BA #BA40B2
triadic
#8540BA #BA8540 #40BA85
tetradic
#8540BA #BA4840 #75BA40 #40B2BA
square
#8540BA #BA4840 #75BA40 #40B2BA
split-complementary
#8540BA #B2BA40 #40BA48
monochromatic
#44215F #64308C #8540BA #A26BCC #BF99DC

Accessibility & contrast

On white

6.11
#8540BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540BA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540BA#FFFFFF#000000##FFFFFF
##8540BA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2563B7
Tritanopia (blue-blind)
#7C5A77
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8540ba;
/* rgb */ color: rgb(133, 64, 186);
/* oklch */ color: oklch(51.8% 0.187 307.0);
Tailwind
colors: {
  custom: {
    50: '#ad79cf',
    500: '#8540ba',
    950: '#000000',
  },
}
SCSS
$custom: #8540ba;
$custom-light: #ad79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8540ba",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 273.934,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51828,
    "c": 0.18696,
    "h": 307
  },
  "luminance": 0.12199
}

Semantic roles & 50–950 ramp

primary
#8540BA
secondary
#A7C88E
accent
#D84F8B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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