#8542D2#8542D2

#8542D2 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.210 H 300.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8542D2
RGBrgb(133, 66, 210)
HSLhsl(268, 62%, 54%)
HSVhsv(268, 69%, 82%)
CMYKcmyk(36.7%, 68.6%, 0%, 17.6%)
CIE-LABlab(43.56, 55.98, -63.39)
CIE-LCHlch(43.56, 84.57, 311.45°)
OKLaboklab(53.82% 0.1076 -0.1806)
OKLCHoklch(53.82% 0.21 300.8)
XYZxyz(23.2511, 13.5360, 62.3480)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542D2 #8FD242
analogous
#4247D2 #8542D2 #CD42D2
triadic
#8542D2 #D28542 #42D285
tetradic
#8542D2 #D24247 #8FD242 #42D2CD
square
#8542D2 #D24247 #8FD242 #42D2CD
split-complementary
#8542D2 #D2CD42 #47D242
monochromatic
#4A1E7C #6729AD #8542D2 #A573DE #C5A5EA

Accessibility & contrast

On white

5.66
#8542D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8542D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542D2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542D2#FFFFFF#000000##FFFFFF
##8542D21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#746485
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8542d2;
/* rgb */ color: rgb(133, 66, 210);
/* oklch */ color: oklch(53.8% 0.210 300.8);
Tailwind
colors: {
  custom: {
    50: '#ae7be1',
    500: '#8542d2',
    950: '#000000',
  },
}
SCSS
$custom: #8542d2;
$custom-light: #ae7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8542d2",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 267.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53815,
    "c": 0.21024,
    "h": 300.8
  },
  "luminance": 0.13536
}

Semantic roles & 50–950 ramp

primary
#8542D2
secondary
#BAD799
accent
#E5439A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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