#8542D1#8542D1

#8542D1 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.209 H 301.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8542D1
RGBrgb(133, 66, 209)
HSLhsl(268, 61%, 54%)
HSVhsv(268, 68%, 82%)
CMYKcmyk(36.4%, 68.4%, 0%, 18%)
CIE-LABlab(43.49, 55.74, -62.93)
CIE-LCHlch(43.49, 84.07, 311.53°)
OKLaboklab(53.74% 0.1078 -0.1793)
OKLCHoklch(53.74% 0.209 301)
XYZxyz(23.1269, 13.4863, 61.6939)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542D1 #8ED142
analogous
#4247D1 #8542D1 #CD42D1
triadic
#8542D1 #D18542 #42D185
tetradic
#8542D1 #D14247 #8ED142 #42D1CD
square
#8542D1 #D14247 #8ED142 #42D1CD
split-complementary
#8542D1 #D1CD42 #47D142
monochromatic
#491E7B #672AAC #8542D1 #A573DD #C5A4E9

Accessibility & contrast

On white

5.68
#8542D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8542D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542D1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542D1#FFFFFF#000000##FFFFFF
##8542D11.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#756484
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8542d1;
/* rgb */ color: rgb(133, 66, 209);
/* oklch */ color: oklch(53.7% 0.209 301.0);
Tailwind
colors: {
  custom: {
    50: '#ae7be0',
    500: '#8542d1',
    950: '#000000',
  },
}
SCSS
$custom: #8542d1;
$custom-light: #ae7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#8542d1",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 268.112,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5374,
    "c": 0.20916,
    "h": 301
  },
  "luminance": 0.13486
}

Semantic roles & 50–950 ramp

primary
#8542D1
secondary
#B9D699
accent
#E44499
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8542D1

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

Preview Lab → · Contrast checker → · Palette generator →

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