#8E40CF#8E40CF

#8E40CF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.211 H 305.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8E40CF
RGBrgb(142, 64, 207)
HSLhsl(273, 60%, 53%)
HSVhsv(273, 69%, 81%)
CMYKcmyk(31.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(44.12, 57.97, -60.70)
CIE-LCHlch(44.12, 83.94, 313.68°)
OKLaboklab(54.39% 0.1223 -0.1724)
OKLCHoklch(54.39% 0.211 305.3)
XYZxyz(24.2487, 13.9227, 60.4293)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40CF #81CF40
analogous
#4640CF #8E40CF #CF40C9
triadic
#8E40CF #CF8E40 #40CF8E
tetradic
#8E40CF #CF4640 #81CF40 #40C9CF
square
#8E40CF #CF4640 #81CF40 #40C9CF
split-complementary
#8E40CF #C9CF40 #40CF46
monochromatic
#4E1E77 #6F2AA8 #8E40CF #AB71DB #C8A2E8

Accessibility & contrast

On white

5.55
#8E40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8E40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40CF
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40CF#FFFFFF#000000##FFFFFF
##8E40CF1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0468CC
Tritanopia (blue-blind)
#826183
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e40cf;
/* rgb */ color: rgb(142, 64, 207);
/* oklch */ color: oklch(54.4% 0.211 305.3);
Tailwind
colors: {
  custom: {
    50: '#b47bdf',
    500: '#8e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #8e40cf;
$custom-light: #b47bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40cf",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 272.727,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54391,
    "c": 0.21134,
    "h": 305.3
  },
  "luminance": 0.13923
}

Semantic roles & 50–950 ramp

primary
#8E40CF
secondary
#B3D497
accent
#E3458D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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