#8D54B2#8D54B2

#8D54B2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.150 H 310.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8D54B2
RGBrgb(141, 84, 178)
HSLhsl(276, 38%, 51%)
HSVhsv(276, 53%, 70%)
CMYKcmyk(20.8%, 52.8%, 0%, 30.2%)
CIE-LABlab(45.93, 40.93, -40.95)
CIE-LCHlch(45.93, 57.90, 314.98°)
OKLaboklab(55.1% 0.0974 -0.1146)
OKLCHoklch(55.1% 0.15 310.4)
XYZxyz(22.1892, 15.2181, 43.8793)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D54B2 #79B254
analogous
#5E54B2 #8D54B2 #B254A8
triadic
#8D54B2 #B28D54 #54B28D
tetradic
#8D54B2 #B25E54 #79B254 #54A8B2
square
#8D54B2 #B25E54 #79B254 #54A8B2
split-complementary
#8D54B2 #A8B254 #54B25E
monochromatic
#4B2B60 #6C3E8A #8D54B2 #A97EC5 #C5A8D8

Accessibility & contrast

On white

5.19
#8D54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8D54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D54B2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D54B2#FFFFFF#000000##FFFFFF
##8D54B21.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#88647B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d54b2;
/* rgb */ color: rgb(141, 84, 178);
/* oklch */ color: oklch(55.1% 0.150 310.4);
Tailwind
colors: {
  custom: {
    50: '#b186c9',
    500: '#8d54b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d54b2;
$custom-light: #b186c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d54b2",
  "rgb": {
    "r": 141,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 276.383,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55101,
    "c": 0.15043,
    "h": 310.4
  },
  "luminance": 0.15218
}

Semantic roles & 50–950 ramp

primary
#8D54B2
secondary
#ACC69C
accent
#CE5A88
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D54B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8D54B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva