#8E40BA#8E40BA

#8E40BA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.190 H 311.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8E40BA
RGBrgb(142, 64, 186)
HSLhsl(278, 49%, 49%)
HSVhsv(278, 66%, 73%)
CMYKcmyk(23.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.71, 53.25, -50.78)
CIE-LCHlch(42.71, 73.58, 316.36°)
OKLaboklab(52.93% 0.1244 -0.1432)
OKLCHoklch(52.93% 0.19 311)
XYZxyz(21.8500, 12.9632, 47.7960)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40BA #6CBA40
analogous
#5140BA #8E40BA #BA40A9
triadic
#8E40BA #BA8E40 #40BA8E
tetradic
#8E40BA #BA5140 #6CBA40 #40A9BA
square
#8E40BA #BA5140 #6CBA40 #40A9BA
split-complementary
#8E40BA #A9BA40 #40BA51
monochromatic
#48215F #6B308C #8E40BA #A96BCC #C499DC

Accessibility & contrast

On white

5.85
#8E40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8E40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40BA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40BA#FFFFFF#000000##FFFFFF
##8E40BA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#3266B7
Tritanopia (blue-blind)
#885977
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e40ba;
/* rgb */ color: rgb(142, 64, 186);
/* oklch */ color: oklch(52.9% 0.190 311.0);
Tailwind
colors: {
  custom: {
    50: '#b37acf',
    500: '#8e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #8e40ba;
$custom-light: #b37acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40ba",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 278.361,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52928,
    "c": 0.18971,
    "h": 311
  },
  "luminance": 0.12963
}

Semantic roles & 50–950 ramp

primary
#8E40BA
secondary
#A3C88E
accent
#D84F81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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