#8C5DFD#8C5DFD

#8C5DFD is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.226 H 291.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8C5DFD
RGBrgb(140, 93, 253)
HSLhsl(258, 98%, 68%)
HSVhsv(258, 63%, 99%)
CMYKcmyk(44.7%, 63.2%, 0%, 0.8%)
CIE-LABlab(52.39, 54.68, -73.30)
CIE-LCHlch(52.39, 91.45, 306.72°)
OKLaboklab(61.31% 0.0842 -0.2096)
OKLCHoklch(61.31% 0.226 291.9)
XYZxyz(32.4543, 20.4949, 95.1554)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5DFD #CEFD5D
analogous
#5D7EFD #8C5DFD #DC5DFD
triadic
#8C5DFD #FD8C5D #5DFD8C
tetradic
#8C5DFD #FD5D7E #CEFD5D #5DFDDC
square
#8C5DFD #FD5D7E #CEFD5D #5DFDDC
split-complementary
#8C5DFD #FDDC5D #7EFD5D
monochromatic
#4303DD #6121FC #8C5DFD #B799FE #E2D6FE

Accessibility & contrast

On white

4.12
#8C5DFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8C5DFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5DFD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5DFD#FFFFFF#000000##000000
##8C5DFD1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#007AFA
Tritanopia (blue-blind)
#6A83A5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8c5dfd;
/* rgb */ color: rgb(140, 93, 253);
/* oklch */ color: oklch(61.3% 0.226 291.9);
Tailwind
colors: {
  custom: {
    50: '#b58dff',
    500: '#8c5dfd',
    950: '#000000',
  },
}
SCSS
$custom: #8c5dfd;
$custom-light: #b58dff;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5dfd",
  "rgb": {
    "r": 140,
    "g": 93,
    "b": 253
  },
  "hsl": {
    "h": 257.625,
    "s": 97.561,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.22586,
    "h": 291.9
  },
  "luminance": 0.20496
}

Semantic roles & 50–950 ramp

primary
#8C5DFD
secondary
#E5F4C2
accent
#E600A2
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8C5DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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