#8542E2#8542E2

#8542E2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.227 H 297.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8542E2
RGBrgb(133, 66, 226)
HSLhsl(265, 73%, 57%)
HSVhsv(265, 71%, 89%)
CMYKcmyk(41.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(44.76, 59.91, -70.58)
CIE-LCHlch(44.76, 92.58, 310.33°)
OKLaboklab(55.05% 0.1049 -0.2018)
OKLCHoklch(55.05% 0.227 297.5)
XYZxyz(25.3450, 14.3735, 73.3758)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542E2 #9FE242
analogous
#424FE2 #8542E2 #D542E2
triadic
#8542E2 #E28542 #42E285
tetradic
#8542E2 #E2424F #9FE242 #42E2D5
square
#8542E2 #E2424F #9FE242 #42E2D5
split-complementary
#8542E2 #E2D542 #4FE242
monochromatic
#4B1793 #661FC8 #8542E2 #A777EA #C9ACF2

Accessibility & contrast

On white

5.42
#8542E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8542E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542E2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542E2#FFFFFF#000000##FFFFFF
##8542E21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#0068DF
Tritanopia (blue-blind)
#6D6A8E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8542e2;
/* rgb */ color: rgb(133, 66, 226);
/* oklch */ color: oklch(55.0% 0.227 297.5);
Tailwind
colors: {
  custom: {
    50: '#b07cec',
    500: '#8542e2',
    950: '#000000',
  },
}
SCSS
$custom: #8542e2;
$custom-light: #b07cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8542e2",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 265.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55048,
    "c": 0.22739,
    "h": 297.5
  },
  "luminance": 0.14374
}

Semantic roles & 50–950 ramp

primary
#8542E2
secondary
#C5E09F
accent
#F038A3
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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