#8542C7#8542C7

#8542C7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.198 H 303.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8542C7
RGBrgb(133, 66, 199)
HSLhsl(270, 54%, 52%)
HSVhsv(270, 67%, 78%)
CMYKcmyk(33.2%, 66.8%, 0%, 22%)
CIE-LABlab(42.77, 53.33, -58.31)
CIE-LCHlch(42.77, 79.02, 312.44°)
OKLaboklab(53% 0.1091 -0.1657)
OKLCHoklch(53% 0.198 303.4)
XYZxyz(21.9275, 13.0065, 55.3771)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542C7 #84C742
analogous
#4342C7 #8542C7 #C742C6
triadic
#8542C7 #C78542 #42C785
tetradic
#8542C7 #C74342 #84C742 #42C6C7
square
#8542C7 #C74342 #84C742 #42C6C7
split-complementary
#8542C7 #C6C742 #42C743
monochromatic
#48216E #662F9D #8542C7 #A371D5 #C2A0E3

Accessibility & contrast

On white

5.83
#8542C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8542C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542C7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542C7#FFFFFF#000000##FFFFFF
##8542C71.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0965C4
Tritanopia (blue-blind)
#78607F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8542c7;
/* rgb */ color: rgb(133, 66, 199);
/* oklch */ color: oklch(53.0% 0.198 303.4);
Tailwind
colors: {
  custom: {
    50: '#ad7bd9',
    500: '#8542c7',
    950: '#000000',
  },
}
SCSS
$custom: #8542c7;
$custom-light: #ad7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8542c7",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 270.226,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53004,
    "c": 0.19835,
    "h": 303.4
  },
  "luminance": 0.13006
}

Semantic roles & 50–950 ramp

primary
#8542C7
secondary
#B2D095
accent
#DE4A93
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8542C7

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

Preview Lab → · Contrast checker → · Palette generator →

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