#8E40BC#8E40BC

#8E40BC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.1% C 0.192 H 310.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8E40BC
RGBrgb(142, 64, 188)
HSLhsl(278, 49%, 49%)
HSVhsv(278, 66%, 74%)
CMYKcmyk(24.5%, 66%, 0%, 26.3%)
CIE-LABlab(42.84, 53.69, -51.74)
CIE-LCHlch(42.84, 74.56, 316.06°)
OKLaboklab(53.06% 0.1242 -0.1461)
OKLCHoklch(53.06% 0.192 310.4)
XYZxyz(22.0641, 13.0489, 48.9236)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40BC #6EBC40
analogous
#5040BC #8E40BC #BC40AC
triadic
#8E40BC #BC8E40 #40BC8E
tetradic
#8E40BC #BC5040 #6EBC40 #40ACBC
square
#8E40BC #BC5040 #6EBC40 #40ACBC
split-complementary
#8E40BC #ACBC40 #40BC50
monochromatic
#492161 #6C308E #8E40BC #A96CCD #C49ADD

Accessibility & contrast

On white

5.82
#8E40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8E40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40BC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40BC#FFFFFF#000000##FFFFFF
##8E40BC1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2F66B9
Tritanopia (blue-blind)
#885979
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e40bc;
/* rgb */ color: rgb(142, 64, 188);
/* oklch */ color: oklch(53.1% 0.192 310.4);
Tailwind
colors: {
  custom: {
    50: '#b37ad1',
    500: '#8e40bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e40bc;
$custom-light: #b37ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40bc",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 277.742,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53062,
    "c": 0.19177,
    "h": 310.4
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#8E40BC
secondary
#A5C98F
accent
#D94F82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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