#8C5CE7#8C5CE7

#8C5CE7 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.201 H 295.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8C5CE7
RGBrgb(140, 92, 231)
HSLhsl(261, 74%, 63%)
HSVhsv(261, 60%, 91%)
CMYKcmyk(39.4%, 60.2%, 0%, 9.4%)
CIE-LABlab(50.69, 49.41, -63.77)
CIE-LCHlch(50.69, 80.67, 307.77°)
OKLaboklab(59.59% 0.0868 -0.1815)
OKLCHoklch(59.59% 0.201 295.6)
XYZxyz(29.0624, 18.9987, 77.7217)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CE7 #B7E75C
analogous
#5C71E7 #8C5CE7 #D15CE7
triadic
#8C5CE7 #E78C5C #5CE78C
tetradic
#8C5CE7 #E75C71 #B7E75C #5CE7D1
square
#8C5CE7 #E75C71 #B7E75C #5CE7D1
split-complementary
#8C5CE7 #E7D15C #71E75C
monochromatic
#4D1AAF #6627DF #8C5CE7 #B291EF #D7C7F7

Accessibility & contrast

On white

4.38
#8C5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8C5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CE7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CE7#FFFFFF#000000##000000
##8C5CE71.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#1277E4
Tritanopia (blue-blind)
#757B99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c5ce7;
/* rgb */ color: rgb(140, 92, 231);
/* oklch */ color: oklch(59.6% 0.201 295.6);
Tailwind
colors: {
  custom: {
    50: '#b38cef',
    500: '#8c5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ce7;
$custom-light: #b38cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ce7",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 260.719,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59594,
    "c": 0.20125,
    "h": 295.6
  },
  "luminance": 0.18999
}

Semantic roles & 50–950 ramp

primary
#8C5CE7
secondary
#D7E8B7
accent
#D60F92
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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