#8540CA#8540CA

#8540CA is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.204 H 302.9°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8540CA
RGBrgb(133, 64, 202)
HSLhsl(270, 57%, 52%)
HSVhsv(270, 68%, 79%)
CMYKcmyk(34.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(42.64, 55.00, -60.27)
CIE-LCHlch(42.64, 81.59, 312.39°)
OKLaboklab(52.98% 0.1108 -0.1714)
OKLCHoklch(52.98% 0.204 302.9)
XYZxyz(22.1644, 12.9176, 57.1913)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8540CA #85CA40
analogous
#4040CA #8540CA #CA40CA
triadic
#8540CA #CA8540 #40CA85
tetradic
#8540CA #CA4040 #85CA40 #40CACA
square
#8540CA #CA4040 #85CA40 #40CACA
split-complementary
#8540CA #CACA40 #40CA40
monochromatic
#481F70 #662CA0 #8540CA #A470D7 #C2A0E5

Accessibility & contrast

On white

5.86
#8540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8540CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8540CA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8540CA#FFFFFF#000000##FFFFFF
##8540CA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#776080
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8540ca;
/* rgb */ color: rgb(133, 64, 202);
/* oklch */ color: oklch(53.0% 0.204 302.9);
Tailwind
colors: {
  custom: {
    50: '#ae7adb',
    500: '#8540ca',
    950: '#000000',
  },
}
SCSS
$custom: #8540ca;
$custom-light: #ae7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8540ca",
  "rgb": {
    "r": 133,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 270,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52975,
    "c": 0.20412,
    "h": 302.9
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#8540CA
secondary
#B3D195
accent
#E04894
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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