#8540DF#8540DF

#8540DF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.226 H 298.3°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8540DF
RGBrgb(133, 64, 223)
HSLhsl(266, 71%, 56%)
HSVhsv(266, 71%, 87%)
CMYKcmyk(40.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(44.21, 60.09, -69.78)
CIE-LCHlch(44.21, 92.09, 310.73°)
OKLaboklab(54.58% 0.1073 -0.1994)
OKLCHoklch(54.58% 0.226 298.3)
XYZxyz(24.8221, 13.9807, 71.1885)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540DF #9ADF40
analogous
#404BDF #8540DF #D540DF
triadic
#8540DF #DF8540 #40DF85
tetradic
#8540DF #DF404B #9ADF40 #40DFD5
square
#8540DF #DF404B #9ADF40 #40DFD5
split-complementary
#8540DF #DFD540 #4BDF40
monochromatic
#4B188D #6620C1 #8540DF #A674E8 #C8A9F1

Accessibility & contrast

On white

5.53
#8540DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8540DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540DF
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540DF#FFFFFF#000000##FFFFFF
##8540DF1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E4
Deuteranopia (green-blind)
#0067DC
Tritanopia (blue-blind)
#6F688C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8540df;
/* rgb */ color: rgb(133, 64, 223);
/* oklch */ color: oklch(54.6% 0.226 298.3);
Tailwind
colors: {
  custom: {
    50: '#b07bea',
    500: '#8540df',
    950: '#000000',
  },
}
SCSS
$custom: #8540df;
$custom-light: #b07bea;
$custom-dark: #000000;
JSON
{
  "hex": "#8540df",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 266.038,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5458,
    "c": 0.22643,
    "h": 298.3
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

primary
#8540DF
secondary
#C2DE9D
accent
#EE3AA0
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8540DF

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

Preview Lab → · Contrast checker → · Palette generator →

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