#8E3ECC#8E3ECC

#8E3ECC is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.211 H 306.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8E3ECC
RGBrgb(142, 62, 204)
HSLhsl(274, 58%, 52%)
HSVhsv(274, 70%, 80%)
CMYKcmyk(30.4%, 69.6%, 0%, 20%)
CIE-LABlab(43.59, 58.19, -59.83)
CIE-LCHlch(43.59, 83.46, 314.20°)
OKLaboklab(53.94% 0.1247 -0.1698)
OKLCHoklch(53.94% 0.211 306.3)
XYZxyz(23.7747, 13.5559, 58.4791)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3ECC #7CCC3E
analogous
#473ECC #8E3ECC #CC3EC3
triadic
#8E3ECC #CC8E3E #3ECC8E
tetradic
#8E3ECC #CC473E #7CCC3E #3EC3CC
square
#8E3ECC #CC473E #7CCC3E #3EC3CC
split-complementary
#8E3ECC #C3CC3E #3ECC47
monochromatic
#4D1E72 #6E2BA2 #8E3ECC #AA6ED9 #C79FE6

Accessibility & contrast

On white

5.66
#8E3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8E3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3ECC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3ECC#FFFFFF#000000##FFFFFF
##8E3ECC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0A67C9
Tritanopia (blue-blind)
#835E81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e3ecc;
/* rgb */ color: rgb(142, 62, 204);
/* oklch */ color: oklch(53.9% 0.211 306.3);
Tailwind
colors: {
  custom: {
    50: '#b47adc',
    500: '#8e3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8e3ecc;
$custom-light: #b47adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3ecc",
  "rgb": {
    "r": 142,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 273.803,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53944,
    "c": 0.21071,
    "h": 306.3
  },
  "luminance": 0.13556
}

Semantic roles & 50–950 ramp

primary
#8E3ECC
secondary
#AFD294
accent
#E1468A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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