#8C5DF3#8C5DF3

#8C5DF3 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.214 H 293.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8C5DF3
RGBrgb(140, 93, 243)
HSLhsl(259, 86%, 66%)
HSVhsv(259, 62%, 95%)
CMYKcmyk(42.4%, 61.7%, 0%, 4.7%)
CIE-LABlab(51.69, 52.03, -68.86)
CIE-LCHlch(51.69, 86.31, 307.07°)
OKLaboklab(60.59% 0.085 -0.1965)
OKLCHoklch(60.59% 0.214 293.4)
XYZxyz(30.9028, 19.8744, 86.9846)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5DF3 #C4F35D
analogous
#5D79F3 #8C5DF3 #D75DF3
triadic
#8C5DF3 #F38C5D #5DF38C
tetradic
#8C5DF3 #F35D79 #C4F35D #5DF3D7
square
#8C5DF3 #F35D79 #C4F35D #5DF3D7
split-complementary
#8C5DF3 #F3D75D #79F35D
monochromatic
#480FC7 #6424EF #8C5DF3 #B496F7 #DDCFFB

Accessibility & contrast

On white

4.22
#8C5DF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8C5DF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5DF3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5DF3#FFFFFF#000000##000000
##8C5DF31.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF8
Deuteranopia (green-blind)
#0079F0
Tritanopia (blue-blind)
#707FA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8c5df3;
/* rgb */ color: rgb(140, 93, 243);
/* oklch */ color: oklch(60.6% 0.214 293.4);
Tailwind
colors: {
  custom: {
    50: '#b48df8',
    500: '#8c5df3',
    950: '#000000',
  },
}
SCSS
$custom: #8c5df3;
$custom-light: #b48df8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5df3",
  "rgb": {
    "r": 140,
    "g": 93,
    "b": 243
  },
  "hsl": {
    "h": 258.8,
    "s": 86.207,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60585,
    "c": 0.21414,
    "h": 293.4
  },
  "luminance": 0.19875
}

Semantic roles & 50–950 ramp

primary
#8C5DF3
secondary
#DFEFBD
accent
#E3039D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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