#8542B7#8542B7

#8542B7 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.181 H 307.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8542B7
RGBrgb(133, 66, 183)
HSLhsl(274, 47%, 49%)
HSVhsv(274, 64%, 72%)
CMYKcmyk(27.3%, 63.9%, 0%, 28.2%)
CIE-LABlab(41.69, 49.55, -50.71)
CIE-LCHlch(41.69, 70.90, 314.33°)
OKLaboklab(51.88% 0.1104 -0.1434)
OKLCHoklch(51.88% 0.181 307.6)
XYZxyz(20.1666, 12.3021, 46.1027)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8542B7 #74B742
analogous
#4B42B7 #8542B7 #B742AF
triadic
#8542B7 #B78542 #42B785
tetradic
#8542B7 #B74B42 #74B742 #42AFB7
square
#8542B7 #B74B42 #74B742 #42AFB7
split-complementary
#8542B7 #AFB742 #42B74B
monochromatic
#44225D #64328A #8542B7 #A26CCA #BE99DA

Accessibility & contrast

On white

6.07
#8542B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8542B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8542B7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8542B7#FFFFFF#000000##FFFFFF
##8542B71.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#2C63B4
Tritanopia (blue-blind)
#7D5A76
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8542b7;
/* rgb */ color: rgb(133, 66, 183);
/* oklch */ color: oklch(51.9% 0.181 307.6);
Tailwind
colors: {
  custom: {
    50: '#ac7acd',
    500: '#8542b7',
    950: '#000000',
  },
}
SCSS
$custom: #8542b7;
$custom-light: #ac7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#8542b7",
  "rgb": {
    "r": 133,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 274.359,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51882,
    "c": 0.18095,
    "h": 307.6
  },
  "luminance": 0.12302
}

Semantic roles & 50–950 ramp

primary
#8542B7
secondary
#A6C68F
accent
#D7518A
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8542B7

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

Preview Lab → · Contrast checker → · Palette generator →

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