#8C54DC#8C54DC

#8C54DC is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.7% C 0.199 H 299.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8C54DC
RGBrgb(140, 84, 220)
HSLhsl(265, 66%, 60%)
HSVhsv(265, 62%, 86%)
CMYKcmyk(36.4%, 61.8%, 0%, 13.7%)
CIE-LABlab(48.36, 50.85, -61.29)
CIE-LCHlch(48.36, 79.64, 309.68°)
OKLaboklab(57.67% 0.0965 -0.1743)
OKLCHoklch(57.67% 0.199 299)
XYZxyz(26.9006, 17.0831, 69.5764)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C54DC #A4DC54
analogous
#5460DC #8C54DC #D054DC
triadic
#8C54DC #DC8C54 #54DC8C
tetradic
#8C54DC #DC5460 #A4DC54 #54DCD0
square
#8C54DC #DC5460 #A4DC54 #54DCD0
split-complementary
#8C54DC #DCD054 #60DC54
monochromatic
#501F97 #6B29CA #8C54DC #AE87E6 #D0BAF1

Accessibility & contrast

On white

4.75
#8C54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8C54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C54DC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C54DC#FFFFFF#000000##FFFFFF
##8C54DC1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#1972D9
Tritanopia (blue-blind)
#7A7290
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8c54dc;
/* rgb */ color: rgb(140, 84, 220);
/* oklch */ color: oklch(57.7% 0.199 299.0);
Tailwind
colors: {
  custom: {
    50: '#b387e8',
    500: '#8c54dc',
    950: '#000000',
  },
}
SCSS
$custom: #8c54dc;
$custom-light: #b387e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c54dc",
  "rgb": {
    "r": 140,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 264.706,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57674,
    "c": 0.1992,
    "h": 299
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#8C54DC
secondary
#CBE0AC
accent
#E93FA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8C54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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