#8540D3#8540D3

#8540D3 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.214 H 300.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8540D3
RGBrgb(133, 64, 211)
HSLhsl(268, 63%, 54%)
HSVhsv(268, 70%, 83%)
CMYKcmyk(37%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.30, 57.17, -64.40)
CIE-LCHlch(43.30, 86.11, 311.60°)
OKLaboklab(53.65% 0.1095 -0.1836)
OKLCHoklch(53.65% 0.214 300.8)
XYZxyz(23.2613, 13.3563, 62.9679)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540D3 #8ED340
analogous
#4045D3 #8540D3 #CE40D3
triadic
#8540D3 #D38540 #40D385
tetradic
#8540D3 #D34045 #8ED340 #40D3CE
square
#8540D3 #D34045 #8ED340 #40D3CE
split-complementary
#8540D3 #D3CE40 #45D340
monochromatic
#491D7C #6728AE #8540D3 #A572DE #C5A3EA

Accessibility & contrast

On white

5.72
#8540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8540D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540D3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540D3#FFFFFF#000000##FFFFFF
##8540D31.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#746385
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8540d3;
/* rgb */ color: rgb(133, 64, 211);
/* oklch */ color: oklch(53.6% 0.214 300.8);
Tailwind
colors: {
  custom: {
    50: '#ae7ae1',
    500: '#8540d3',
    950: '#000000',
  },
}
SCSS
$custom: #8540d3;
$custom-light: #ae7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8540d3",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 268.163,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53649,
    "c": 0.21372,
    "h": 300.8
  },
  "luminance": 0.13356
}

Semantic roles & 50–950 ramp

primary
#8540D3
secondary
#B9D798
accent
#E64299
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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