#8E40BD#8E40BD

#8E40BD is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.193 H 310.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8E40BD
RGBrgb(142, 64, 189)
HSLhsl(277, 49%, 50%)
HSVhsv(277, 66%, 74%)
CMYKcmyk(24.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(42.90, 53.91, -52.22)
CIE-LCHlch(42.90, 75.05, 315.91°)
OKLaboklab(53.13% 0.1242 -0.1475)
OKLCHoklch(53.13% 0.193 310.1)
XYZxyz(22.1723, 13.0922, 49.4933)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40BD #6FBD40
analogous
#5040BD #8E40BD #BD40AE
triadic
#8E40BD #BD8E40 #40BD8E
tetradic
#8E40BD #BD5040 #6FBD40 #40AEBD
square
#8E40BD #BD5040 #6FBD40 #40AEBD
split-complementary
#8E40BD #AEBD40 #40BD50
monochromatic
#492162 #6C318F #8E40BD #A96DCD #C49ADD

Accessibility & contrast

On white

5.80
#8E40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8E40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40BD
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40BD#FFFFFF#000000##FFFFFF
##8E40BD1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#2E67BA
Tritanopia (blue-blind)
#885A79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e40bd;
/* rgb */ color: rgb(142, 64, 189);
/* oklch */ color: oklch(53.1% 0.193 310.1);
Tailwind
colors: {
  custom: {
    50: '#b37ad2',
    500: '#8e40bd',
    950: '#000000',
  },
}
SCSS
$custom: #8e40bd;
$custom-light: #b37ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40bd",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 277.44,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5313,
    "c": 0.1928,
    "h": 310.1
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#8E40BD
secondary
#A5C990
accent
#D94F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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