#8542CA#8542CA

#8542CA is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.202 H 302.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8542CA
RGBrgb(133, 66, 202)
HSLhsl(270, 56%, 53%)
HSVhsv(270, 67%, 79%)
CMYKcmyk(34.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.98, 54.05, -59.71)
CIE-LCHlch(42.98, 80.54, 312.15°)
OKLaboklab(53.22% 0.1087 -0.1698)
OKLCHoklch(53.22% 0.202 302.6)
XYZxyz(22.2793, 13.1472, 57.2296)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542CA #87CA42
analogous
#4243CA #8542CA #C942CA
triadic
#8542CA #CA8542 #42CA85
tetradic
#8542CA #CA4243 #87CA42 #42CAC9
square
#8542CA #CA4243 #87CA42 #42CAC9
split-complementary
#8542CA #CAC942 #43CA42
monochromatic
#482072 #672DA2 #8542CA #A472D7 #C3A2E5

Accessibility & contrast

On white

5.79
#8542CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8542CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542CA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542CA#FFFFFF#000000##FFFFFF
##8542CA1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8542ca;
/* rgb */ color: rgb(133, 66, 202);
/* oklch */ color: oklch(53.2% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#ae7bdb',
    500: '#8542ca',
    950: '#000000',
  },
}
SCSS
$custom: #8542ca;
$custom-light: #ae7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8542ca",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 269.559,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53222,
    "c": 0.2016,
    "h": 302.6
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#8542CA
secondary
#B4D196
accent
#DF4895
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8542CA

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

Preview Lab → · Contrast checker → · Palette generator →

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