#8C5FEE#8C5FEE

#8C5FEE is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.5% C 0.206 H 293.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8C5FEE
RGBrgb(140, 95, 238)
HSLhsl(259, 81%, 65%)
HSVhsv(259, 60%, 93%)
CMYKcmyk(41.2%, 60.1%, 0%, 6.7%)
CIE-LABlab(51.76, 49.63, -65.96)
CIE-LCHlch(51.76, 82.54, 306.96°)
OKLaboklab(60.53% 0.0832 -0.188)
OKLCHoklch(60.53% 0.206 293.9)
XYZxyz(30.3359, 19.9321, 83.1213)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5FEE #C1EE5F
analogous
#5F79EE #8C5FEE #D35FEE
triadic
#8C5FEE #EE8C5F #5FEE8C
tetradic
#8C5FEE #EE5F79 #C1EE5F #5FEED3
square
#8C5FEE #EE5F79 #C1EE5F #5FEED3
split-complementary
#8C5FEE #EED35F #79EE5F
monochromatic
#4A14BE #6428E8 #8C5FEE #B496F4 #DCCEFA

Accessibility & contrast

On white

4.21
#8C5FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8C5FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5FEE
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5FEE#FFFFFF#000000##000000
##8C5FEE1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#0079EB
Tritanopia (blue-blind)
#727F9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8c5fee;
/* rgb */ color: rgb(140, 95, 238);
/* oklch */ color: oklch(60.5% 0.206 293.9);
Tailwind
colors: {
  custom: {
    50: '#b48ef4',
    500: '#8c5fee',
    950: '#000000',
  },
}
SCSS
$custom: #8c5fee;
$custom-light: #b48ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5fee",
  "rgb": {
    "r": 140,
    "g": 95,
    "b": 238
  },
  "hsl": {
    "h": 258.881,
    "s": 80.791,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60526,
    "c": 0.20558,
    "h": 293.9
  },
  "luminance": 0.19933
}

Semantic roles & 50–950 ramp

primary
#8C5FEE
secondary
#DDECBC
accent
#DD089A
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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