#8C5FFE#8C5FFE

#8C5FFE is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.225 H 291.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8C5FFE
RGBrgb(140, 95, 254)
HSLhsl(257, 99%, 68%)
HSVhsv(257, 63%, 100%)
CMYKcmyk(44.9%, 62.6%, 0%, 0.4%)
CIE-LABlab(52.86, 53.89, -73.10)
CIE-LCHlch(52.86, 90.82, 306.40°)
OKLaboklab(61.67% 0.0821 -0.209)
OKLCHoklch(61.67% 0.225 291.4)
XYZxyz(32.7918, 20.9145, 96.0558)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5FFE #D1FE5F
analogous
#5F81FE #8C5FFE #DB5FFE
triadic
#8C5FFE #FE8C5F #5FFE8C
tetradic
#8C5FFE #FE5F81 #D1FE5F #5FFEDB
square
#8C5FFE #FE5F81 #D1FE5F #5FFEDB
split-complementary
#8C5FFE #FEDB5F #81FE5F
monochromatic
#4101E1 #6022FE #8C5FFE #B89CFE #E3D9FF

Accessibility & contrast

On white

4.05
#8C5FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8C5FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5FFE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5FFE#FFFFFF#000000##000000
##8C5FFE1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c5ffe;
/* rgb */ color: rgb(140, 95, 254);
/* oklch */ color: oklch(61.7% 0.225 291.4);
Tailwind
colors: {
  custom: {
    50: '#b58fff',
    500: '#8c5ffe',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ffe;
$custom-light: #b58fff;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ffe",
  "rgb": {
    "r": 140,
    "g": 95,
    "b": 254
  },
  "hsl": {
    "h": 256.981,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61669,
    "c": 0.22454,
    "h": 291.4
  },
  "luminance": 0.20916
}

Semantic roles & 50–950 ramp

primary
#8C5FFE
secondary
#E7F4C4
accent
#E600A5
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8C5FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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