#8E40C2#8E40C2

#8E40C2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.5% C 0.198 H 308.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8E40C2
RGBrgb(142, 64, 194)
HSLhsl(276, 52%, 51%)
HSVhsv(276, 67%, 76%)
CMYKcmyk(26.8%, 67%, 0%, 23.9%)
CIE-LABlab(43.23, 55.02, -54.61)
CIE-LCHlch(43.23, 77.52, 315.22°)
OKLaboklab(53.47% 0.1238 -0.1545)
OKLCHoklch(53.47% 0.198 308.7)
XYZxyz(22.7244, 13.3130, 52.4010)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40C2 #74C240
analogous
#4D40C2 #8E40C2 #C240B5
triadic
#8E40C2 #C28E40 #40C28E
tetradic
#8E40C2 #C24D40 #74C240 #40B5C2
square
#8E40C2 #C24D40 #74C240 #40B5C2
split-complementary
#8E40C2 #B5C240 #40C24D
monochromatic
#4B2167 #6D3095 #8E40C2 #A96ED1 #C59DE0

Accessibility & contrast

On white

5.73
#8E40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8E40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40C2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40C2#FFFFFF#000000##FFFFFF
##8E40C21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#2767BF
Tritanopia (blue-blind)
#865C7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e40c2;
/* rgb */ color: rgb(142, 64, 194);
/* oklch */ color: oklch(53.5% 0.198 308.7);
Tailwind
colors: {
  custom: {
    50: '#b37ad5',
    500: '#8e40c2',
    950: '#000000',
  },
}
SCSS
$custom: #8e40c2;
$custom-light: #b37ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40c2",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 276,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53471,
    "c": 0.19794,
    "h": 308.7
  },
  "luminance": 0.13313
}

Semantic roles & 50–950 ramp

primary
#8E40C2
secondary
#A9CC92
accent
#DB4D86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8E40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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