#8540C7#8540C7

#8540C7 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.201 H 303.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8540C7
RGBrgb(133, 64, 199)
HSLhsl(271, 55%, 52%)
HSVhsv(271, 68%, 78%)
CMYKcmyk(33.2%, 67.8%, 0%, 22%)
CIE-LABlab(42.43, 54.29, -58.87)
CIE-LCHlch(42.43, 80.08, 312.68°)
OKLaboklab(52.75% 0.1112 -0.1673)
OKLCHoklch(52.75% 0.201 303.6)
XYZxyz(21.8127, 12.7769, 55.3388)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540C7 #82C740
analogous
#4240C7 #8540C7 #C740C5
triadic
#8540C7 #C78540 #40C785
tetradic
#8540C7 #C74240 #82C740 #40C5C7
square
#8540C7 #C74240 #82C740 #40C5C7
split-complementary
#8540C7 #C5C740 #40C742
monochromatic
#47206D #662E9C #8540C7 #A36FD5 #C19FE3

Accessibility & contrast

On white

5.91
#8540C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8540C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540C7
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540C7#FFFFFF#000000##FFFFFF
##8540C71.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0064C4
Tritanopia (blue-blind)
#785F7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8540c7;
/* rgb */ color: rgb(133, 64, 199);
/* oklch */ color: oklch(52.8% 0.201 303.6);
Tailwind
colors: {
  custom: {
    50: '#ad7ad9',
    500: '#8540c7',
    950: '#000000',
  },
}
SCSS
$custom: #8540c7;
$custom-light: #ad7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8540c7",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 270.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52754,
    "c": 0.20091,
    "h": 303.6
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#8540C7
secondary
#B1CF94
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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