#8E40BE#8E40BE

#8E40BE is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.2% C 0.194 H 309.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8E40BE
RGBrgb(142, 64, 190)
HSLhsl(277, 50%, 50%)
HSVhsv(277, 66%, 75%)
CMYKcmyk(25.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.97, 54.13, -52.70)
CIE-LCHlch(42.97, 75.55, 315.77°)
OKLaboklab(53.2% 0.1241 -0.1489)
OKLCHoklch(53.2% 0.194 309.8)
XYZxyz(22.2812, 13.1357, 50.0669)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40BE #70BE40
analogous
#4F40BE #8E40BE #BE40AF
triadic
#8E40BE #BE8E40 #40BE8E
tetradic
#8E40BE #BE4F40 #70BE40 #40AFBE
square
#8E40BE #BE4F40 #70BE40 #40AFBE
split-complementary
#8E40BE #AFBE40 #40BE4F
monochromatic
#4A2162 #6C3190 #8E40BE #A96DCE #C49BDD

Accessibility & contrast

On white

5.79
#8E40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8E40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40BE
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40BE#FFFFFF#000000##FFFFFF
##8E40BE1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#2D67BB
Tritanopia (blue-blind)
#875A7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e40be;
/* rgb */ color: rgb(142, 64, 190);
/* oklch */ color: oklch(53.2% 0.194 309.8);
Tailwind
colors: {
  custom: {
    50: '#b37ad2',
    500: '#8e40be',
    950: '#000000',
  },
}
SCSS
$custom: #8e40be;
$custom-light: #b37ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40be",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 277.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53198,
    "c": 0.19382,
    "h": 309.8
  },
  "luminance": 0.13135
}

Semantic roles & 50–950 ramp

primary
#8E40BE
secondary
#A6C990
accent
#D94F83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8E40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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