#8E4FCA#8E4FCA

#8E4FCA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.186 H 304.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8E4FCA
RGBrgb(142, 79, 202)
HSLhsl(271, 54%, 55%)
HSVhsv(271, 61%, 79%)
CMYKcmyk(29.7%, 60.9%, 0%, 20.8%)
CIE-LABlab(46.45, 49.48, -54.05)
CIE-LCHlch(46.45, 73.28, 312.47°)
OKLaboklab(55.97% 0.1058 -0.1529)
OKLCHoklch(55.97% 0.186 304.7)
XYZxyz(24.6096, 15.6071, 57.5817)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4FCA #8BCA4F
analogous
#514FCA #8E4FCA #CA4FC8
triadic
#8E4FCA #CA8E4F #4FCA8E
tetradic
#8E4FCA #CA514F #8BCA4F #4FC8CA
square
#8E4FCA #CA514F #8BCA4F #4FC8CA
split-complementary
#8E4FCA #C8CA4F #4FCA51
monochromatic
#50257A #6F33A9 #8E4FCA #AC7ED8 #CAADE6

Accessibility & contrast

On white

5.10
#8E4FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8E4FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4FCA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4FCA#FFFFFF#000000##FFFFFF
##8E4FCA1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086CCE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#836885
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4fca;
/* rgb */ color: rgb(142, 79, 202);
/* oklch */ color: oklch(56.0% 0.186 304.7);
Tailwind
colors: {
  custom: {
    50: '#b383db',
    500: '#8e4fca',
    950: '#000000',
  },
}
SCSS
$custom: #8e4fca;
$custom-light: #b383db;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4fca",
  "rgb": {
    "r": 142,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 270.732,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55965,
    "c": 0.18597,
    "h": 304.7
  },
  "luminance": 0.15607
}

Semantic roles & 50–950 ramp

primary
#8E4FCA
secondary
#BAD4A1
accent
#DD4B92
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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