#8E40BB#8E40BB

#8E40BB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.191 H 310.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8E40BB
RGBrgb(142, 64, 187)
HSLhsl(278, 49%, 49%)
HSVhsv(278, 66%, 73%)
CMYKcmyk(24.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.77, 53.47, -51.26)
CIE-LCHlch(42.77, 74.07, 316.21°)
OKLaboklab(53% 0.1243 -0.1447)
OKLCHoklch(53% 0.191 310.7)
XYZxyz(21.9567, 13.0059, 48.3578)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40BB #6DBB40
analogous
#5140BB #8E40BB #BB40AB
triadic
#8E40BB #BB8E40 #40BB8E
tetradic
#8E40BB #BB5140 #6DBB40 #40ABBB
square
#8E40BB #BB5140 #6DBB40 #40ABBB
split-complementary
#8E40BB #ABBB40 #40BB51
monochromatic
#492160 #6B308D #8E40BB #A96CCD #C499DC

Accessibility & contrast

On white

5.83
#8E40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8E40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40BB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40BB#FFFFFF#000000##FFFFFF
##8E40BB1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#3166B8
Tritanopia (blue-blind)
#885978
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e40bb;
/* rgb */ color: rgb(142, 64, 187);
/* oklch */ color: oklch(53.0% 0.191 310.7);
Tailwind
colors: {
  custom: {
    50: '#b37ad0',
    500: '#8e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e40bb;
$custom-light: #b37ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40bb",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 278.049,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52995,
    "c": 0.19073,
    "h": 310.7
  },
  "luminance": 0.13005
}

Semantic roles & 50–950 ramp

primary
#8E40BB
secondary
#A4C88F
accent
#D94F81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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