#8542D5#8542D5

#8542D5 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.213 H 300.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8542D5
RGBrgb(133, 66, 213)
HSLhsl(267, 64%, 55%)
HSVhsv(267, 69%, 84%)
CMYKcmyk(37.6%, 69%, 0%, 16.5%)
CIE-LABlab(43.78, 56.72, -64.76)
CIE-LCHlch(43.78, 86.08, 311.21°)
OKLaboklab(54.04% 0.1072 -0.1846)
OKLCHoklch(54.04% 0.213 300.1)
XYZxyz(23.6284, 13.6869, 64.3349)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542D5 #92D542
analogous
#4249D5 #8542D5 #CE42D5
triadic
#8542D5 #D58542 #42D585
tetradic
#8542D5 #D54249 #92D542 #42D5CE
square
#8542D5 #D54249 #92D542 #42D5CE
split-complementary
#8542D5 #D5CE42 #49D542
monochromatic
#4A1C80 #6728B2 #8542D5 #A574E0 #C6A6EB

Accessibility & contrast

On white

5.62
#8542D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8542D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542D5
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542D5#FFFFFF#000000##FFFFFF
##8542D51.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#736587
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8542d5;
/* rgb */ color: rgb(133, 66, 213);
/* oklch */ color: oklch(54.0% 0.213 300.1);
Tailwind
colors: {
  custom: {
    50: '#af7be3',
    500: '#8542d5',
    950: '#000000',
  },
}
SCSS
$custom: #8542d5;
$custom-light: #af7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#8542d5",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 267.347,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54042,
    "c": 0.21347,
    "h": 300.1
  },
  "luminance": 0.13687
}

Semantic roles & 50–950 ramp

primary
#8542D5
secondary
#BCD89A
accent
#E7419B
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8542D5

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

Preview Lab → · Contrast checker → · Palette generator →

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