#8C5EF5#8C5EF5

#8C5EF5 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.9% C 0.215 H 292.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8C5EF5
RGBrgb(140, 94, 245)
HSLhsl(258, 88%, 66%)
HSVhsv(258, 62%, 96%)
CMYKcmyk(42.9%, 61.6%, 0%, 3.9%)
CIE-LABlab(52.03, 52.02, -69.43)
CIE-LCHlch(52.03, 86.76, 306.84°)
OKLaboklab(60.87% 0.0838 -0.1982)
OKLCHoklch(60.87% 0.215 292.9)
XYZxyz(31.2949, 20.1725, 88.6133)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5EF5 #C7F55E
analogous
#5E7CF5 #8C5EF5 #D85EF5
triadic
#8C5EF5 #F58C5E #5EF58C
tetradic
#8C5EF5 #F55E7C #C7F55E #5EF5D8
square
#8C5EF5 #F55E7C #C7F55E #5EF5D8
split-complementary
#8C5EF5 #F5D85E #7CF55E
monochromatic
#470DCC #6324F1 #8C5EF5 #B598F9 #DED1FC

Accessibility & contrast

On white

4.17
#8C5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8C5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5EF5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5EF5#FFFFFF#000000##000000
##8C5EF51.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#6E81A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8c5ef5;
/* rgb */ color: rgb(140, 94, 245);
/* oklch */ color: oklch(60.9% 0.215 292.9);
Tailwind
colors: {
  custom: {
    50: '#b48ef9',
    500: '#8c5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ef5;
$custom-light: #b48ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ef5",
  "rgb": {
    "r": 140,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 258.278,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60873,
    "c": 0.21521,
    "h": 292.9
  },
  "luminance": 0.20173
}

Semantic roles & 50–950 ramp

primary
#8C5EF5
secondary
#E1F0BF
accent
#E5019F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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