#8C5EF2#8C5EF2

#8C5EF2 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.212 H 293.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8C5EF2
RGBrgb(140, 94, 242)
HSLhsl(259, 85%, 66%)
HSVhsv(259, 61%, 95%)
CMYKcmyk(42.1%, 61.2%, 0%, 5.1%)
CIE-LABlab(51.83, 51.23, -68.09)
CIE-LCHlch(51.83, 85.21, 306.96°)
OKLaboklab(60.66% 0.084 -0.1943)
OKLCHoklch(60.66% 0.212 293.4)
XYZxyz(30.8406, 19.9908, 86.2209)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5EF2 #C4F25E
analogous
#5E7AF2 #8C5EF2 #D65EF2
triadic
#8C5EF2 #F28C5E #5EF28C
tetradic
#8C5EF2 #F25E7A #C4F25E #5EF2D6
square
#8C5EF2 #F25E7A #C4F25E #5EF2D6
split-complementary
#8C5EF2 #F2D65E #7AF25E
monochromatic
#4810C6 #6425ED #8C5EF2 #B497F7 #DDCFFB

Accessibility & contrast

On white

4.20
#8C5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8C5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5EF2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5EF2#FFFFFF#000000##000000
##8C5EF21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#70809F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8c5ef2;
/* rgb */ color: rgb(140, 94, 242);
/* oklch */ color: oklch(60.7% 0.212 293.4);
Tailwind
colors: {
  custom: {
    50: '#b48ef7',
    500: '#8c5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ef2;
$custom-light: #b48ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ef2",
  "rgb": {
    "r": 140,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 258.649,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.21166,
    "h": 293.4
  },
  "luminance": 0.19992
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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