#8540D2#8540D2

#8540D2 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.6% C 0.213 H 301.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8540D2
RGBrgb(133, 64, 210)
HSLhsl(268, 62%, 54%)
HSVhsv(268, 70%, 82%)
CMYKcmyk(36.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(43.22, 56.93, -63.94)
CIE-LCHlch(43.22, 85.61, 311.68°)
OKLaboklab(53.57% 0.1096 -0.1822)
OKLCHoklch(53.57% 0.213 301)
XYZxyz(23.1363, 13.3063, 62.3097)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540D2 #8DD240
analogous
#4044D2 #8540D2 #CE40D2
triadic
#8540D2 #D28540 #40D285
tetradic
#8540D2 #D24044 #8DD240 #40D2CE
square
#8540D2 #D24044 #8DD240 #40D2CE
split-complementary
#8540D2 #D2CE40 #44D240
monochromatic
#491D7B #6729AC #8540D2 #A572DE #C4A3E9

Accessibility & contrast

On white

5.74
#8540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540D2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540D2#FFFFFF#000000##FFFFFF
##8540D21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#746384
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8540d2;
/* rgb */ color: rgb(133, 64, 210);
/* oklch */ color: oklch(53.6% 0.213 301.0);
Tailwind
colors: {
  custom: {
    50: '#ae7ae1',
    500: '#8540d2',
    950: '#000000',
  },
}
SCSS
$custom: #8540d2;
$custom-light: #ae7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8540d2",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 268.356,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53573,
    "c": 0.21265,
    "h": 301
  },
  "luminance": 0.13306
}

Semantic roles & 50–950 ramp

primary
#8540D2
secondary
#B9D698
accent
#E54398
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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