#8C5FFD#8C5FFD

#8C5FFD is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.223 H 291.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8C5FFD
RGBrgb(140, 95, 253)
HSLhsl(257, 98%, 68%)
HSVhsv(257, 62%, 99%)
CMYKcmyk(44.7%, 62.5%, 0%, 0.8%)
CIE-LABlab(52.79, 53.62, -72.66)
CIE-LCHlch(52.79, 90.30, 306.43°)
OKLaboklab(61.6% 0.0822 -0.2077)
OKLCHoklch(61.6% 0.223 291.6)
XYZxyz(32.6321, 20.8506, 95.2147)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5FFD #D0FD5F
analogous
#5F81FD #8C5FFD #DB5FFD
triadic
#8C5FFD #FD8C5F #5FFD8C
tetradic
#8C5FFD #FD5F81 #D0FD5F #5FFDDB
square
#8C5FFD #FD5F81 #D0FD5F #5FFDDB
split-complementary
#8C5FFD #FDDB5F #81FD5F
monochromatic
#4103DF #6123FC #8C5FFD #B79BFE #E3D8FF

Accessibility & contrast

On white

4.06
#8C5FFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8C5FFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5FFD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5FFD#FFFFFF#000000##000000
##8C5FFD1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007BFA
Tritanopia (blue-blind)
#6A84A6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8c5ffd;
/* rgb */ color: rgb(140, 95, 253);
/* oklch */ color: oklch(61.6% 0.223 291.6);
Tailwind
colors: {
  custom: {
    50: '#b58fff',
    500: '#8c5ffd',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ffd;
$custom-light: #b58fff;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ffd",
  "rgb": {
    "r": 140,
    "g": 95,
    "b": 253
  },
  "hsl": {
    "h": 257.089,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61596,
    "c": 0.22337,
    "h": 291.6
  },
  "luminance": 0.20852
}

Semantic roles & 50–950 ramp

primary
#8C5FFD
secondary
#E6F4C4
accent
#E600A4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8C5FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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