#8C54E2#8C54E2

#8C54E2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.1% C 0.206 H 297.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8C54E2
RGBrgb(140, 84, 226)
HSLhsl(264, 71%, 61%)
HSVhsv(264, 63%, 89%)
CMYKcmyk(38.1%, 62.8%, 0%, 11.4%)
CIE-LABlab(48.77, 52.36, -64.04)
CIE-LCHlch(48.77, 82.72, 309.27°)
OKLaboklab(58.1% 0.0961 -0.1824)
OKLCHoklch(58.1% 0.206 297.8)
XYZxyz(27.7095, 17.4067, 73.8367)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C54E2 #AAE254
analogous
#5463E2 #8C54E2 #D354E2
triadic
#8C54E2 #E28C54 #54E28C
tetradic
#8C54E2 #E25463 #AAE254 #54E2D3
square
#8C54E2 #E25463 #AAE254 #54E2D3
split-complementary
#8C54E2 #E2D354 #63E254
monochromatic
#501BA0 #6A24D5 #8C54E2 #AF88EB #D2BDF4

Accessibility & contrast

On white

4.69
#8C54E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8C54E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C54E2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C54E2#FFFFFF#000000##FFFFFF
##8C54E21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#787493
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8c54e2;
/* rgb */ color: rgb(140, 84, 226);
/* oklch */ color: oklch(58.1% 0.206 297.8);
Tailwind
colors: {
  custom: {
    50: '#b387ec',
    500: '#8c54e2',
    950: '#000000',
  },
}
SCSS
$custom: #8c54e2;
$custom-light: #b387ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c54e2",
  "rgb": {
    "r": 140,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 263.662,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58095,
    "c": 0.20612,
    "h": 297.8
  },
  "luminance": 0.17407
}

Semantic roles & 50–950 ramp

primary
#8C54E2
secondary
#CFE4AE
accent
#D31287
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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