#8E40CC#8E40CC

#8E40CC is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.208 H 306.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8E40CC
RGBrgb(142, 64, 204)
HSLhsl(273, 58%, 53%)
HSVhsv(273, 69%, 80%)
CMYKcmyk(30.4%, 68.6%, 0%, 20%)
CIE-LABlab(43.91, 57.28, -59.31)
CIE-LCHlch(43.91, 82.46, 314.01°)
OKLaboklab(54.18% 0.1227 -0.1683)
OKLCHoklch(54.18% 0.208 306.1)
XYZxyz(23.8854, 13.7774, 58.5160)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40CC #7ECC40
analogous
#4840CC #8E40CC #CC40C4
triadic
#8E40CC #CC8E40 #40CC8E
tetradic
#8E40CC #CC4840 #7ECC40 #40C4CC
square
#8E40CC #CC4840 #7ECC40 #40C4CC
split-complementary
#8E40CC #C4CC40 #40CC48
monochromatic
#4E1F73 #6E2CA3 #8E40CC #AB70D9 #C7A1E6

Accessibility & contrast

On white

5.59
#8E40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8E40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40CC
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40CC#FFFFFF#000000##FFFFFF
##8E40CC1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#835F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e40cc;
/* rgb */ color: rgb(142, 64, 204);
/* oklch */ color: oklch(54.2% 0.208 306.1);
Tailwind
colors: {
  custom: {
    50: '#b47bdc',
    500: '#8e40cc',
    950: '#000000',
  },
}
SCSS
$custom: #8e40cc;
$custom-light: #b47bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40cc",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 273.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54175,
    "c": 0.20825,
    "h": 306.1
  },
  "luminance": 0.13777
}

Semantic roles & 50–950 ramp

primary
#8E40CC
secondary
#B0D295
accent
#E1478B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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