#8C5DF2#8C5DF2

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

Color values

HEX#8C5DF2
RGBrgb(140, 93, 242)
HSLhsl(259, 85%, 66%)
HSVhsv(259, 62%, 95%)
CMYKcmyk(42.1%, 61.6%, 0%, 5.1%)
CIE-LABlab(51.63, 51.76, -68.41)
CIE-LCHlch(51.63, 85.79, 307.11°)
OKLaboklab(60.51% 0.0851 -0.1952)
OKLCHoklch(60.51% 0.213 293.6)
XYZxyz(30.7522, 19.8141, 86.1914)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5DF2 #C3F25D
analogous
#5D78F2 #8C5DF2 #D65DF2
triadic
#8C5DF2 #F28C5D #5DF28C
tetradic
#8C5DF2 #F25D78 #C3F25D #5DF2D6
square
#8C5DF2 #F25D78 #C3F25D #5DF2D6
split-complementary
#8C5DF2 #F2D65D #78F25D
monochromatic
#4910C5 #6424ED #8C5DF2 #B496F7 #DCCEFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C5DF2#FFFFFF#000000##000000
##8C5DF21.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)
#007DF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#707F9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8c5df2;
/* rgb */ color: rgb(140, 93, 242);
/* oklch */ color: oklch(60.5% 0.213 293.6);
Tailwind
colors: {
  custom: {
    50: '#b48df7',
    500: '#8c5df2',
    950: '#000000',
  },
}
SCSS
$custom: #8c5df2;
$custom-light: #b48df7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5df2",
  "rgb": {
    "r": 140,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 258.926,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60514,
    "c": 0.21296,
    "h": 293.6
  },
  "luminance": 0.19815
}

Semantic roles & 50–950 ramp

primary
#8C5DF2
secondary
#DFEEBD
accent
#E2049C
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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