#8C5FEC#8C5FEC

#8C5FEC is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.4% C 0.203 H 294.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8C5FEC
RGBrgb(140, 95, 236)
HSLhsl(259, 79%, 65%)
HSVhsv(259, 60%, 93%)
CMYKcmyk(40.7%, 59.7%, 0%, 7.5%)
CIE-LABlab(51.63, 49.10, -65.05)
CIE-LCHlch(51.63, 81.50, 307.04°)
OKLaboklab(60.39% 0.0833 -0.1853)
OKLCHoklch(60.39% 0.203 294.2)
XYZxyz(30.0437, 19.8153, 81.5824)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5FEC #BFEC5F
analogous
#5F78EC #8C5FEC #D35FEC
triadic
#8C5FEC #EC8C5F #5FEC8C
tetradic
#8C5FEC #EC5F78 #BFEC5F #5FECD3
square
#8C5FEC #EC5F78 #BFEC5F #5FECD3
split-complementary
#8C5FEC #ECD35F #78EC5F
monochromatic
#4B16BA #6528E6 #8C5FEC #B396F2 #DBCCF9

Accessibility & contrast

On white

4.23
#8C5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#8C5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5FEC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5FEC#FFFFFF#000000##000000
##8C5FEC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0C79E9
Tritanopia (blue-blind)
#737E9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8c5fec;
/* rgb */ color: rgb(140, 95, 236);
/* oklch */ color: oklch(60.4% 0.203 294.2);
Tailwind
colors: {
  custom: {
    50: '#b38ef3',
    500: '#8c5fec',
    950: '#000000',
  },
}
SCSS
$custom: #8c5fec;
$custom-light: #b38ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5fec",
  "rgb": {
    "r": 140,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 259.149,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60387,
    "c": 0.20318,
    "h": 294.2
  },
  "luminance": 0.19816
}

Semantic roles & 50–950 ramp

primary
#8C5FEC
secondary
#DCEBBB
accent
#DB0A98
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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