#8E40CD#8E40CD

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

Color values

HEX#8E40CD
RGBrgb(142, 64, 205)
HSLhsl(273, 59%, 53%)
HSVhsv(273, 69%, 80%)
CMYKcmyk(30.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(43.98, 57.51, -59.77)
CIE-LCHlch(43.98, 82.95, 313.90°)
OKLaboklab(54.25% 0.1225 -0.1697)
OKLCHoklch(54.25% 0.209 305.8)
XYZxyz(24.0058, 13.8256, 59.1497)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40CD #7FCD40
analogous
#4740CD #8E40CD #CD40C6
triadic
#8E40CD #CD8E40 #40CD8E
tetradic
#8E40CD #CD4740 #7FCD40 #40C6CD
square
#8E40CD #CD4740 #7FCD40 #40C6CD
split-complementary
#8E40CD #C6CD40 #40CD47
monochromatic
#4E1E74 #6E2BA5 #8E40CD #AB71DA #C7A1E6

Accessibility & contrast

On white

5.58
#8E40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8E40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40CD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40CD#FFFFFF#000000##FFFFFF
##8E40CD1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0E68CA
Tritanopia (blue-blind)
#836082
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e40cd;
/* rgb */ color: rgb(142, 64, 205);
/* oklch */ color: oklch(54.2% 0.209 305.8);
Tailwind
colors: {
  custom: {
    50: '#b47bdd',
    500: '#8e40cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e40cd;
$custom-light: #b47bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40cd",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 273.191,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.20928,
    "h": 305.8
  },
  "luminance": 0.13825
}

Semantic roles & 50–950 ramp

primary
#8E40CD
secondary
#B1D396
accent
#E2468C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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