#8D40EA#8D40EA

#8D40EA is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.3% C 0.239 H 299.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8D40EA
RGBrgb(141, 64, 234)
HSLhsl(267, 80%, 58%)
HSVhsv(267, 73%, 92%)
CMYKcmyk(39.7%, 72.6%, 0%, 8.2%)
CIE-LABlab(46.00, 64.11, -73.06)
CIE-LCHlch(46.00, 97.20, 311.27°)
OKLaboklab(56.32% 0.1161 -0.2087)
OKLCHoklch(56.32% 0.239 299.1)
XYZxyz(27.6654, 15.2697, 79.3157)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40EA #9DEA40
analogous
#4048EA #8D40EA #E240EA
triadic
#8D40EA #EA8D40 #40EA8D
tetradic
#8D40EA #EA4048 #9DEA40 #40EAE2
square
#8D40EA #EA4048 #9DEA40 #40EAE2
split-complementary
#8D40EA #EAE240 #48EA40
monochromatic
#51119E #6D17D5 #8D40EA #AE77F0 #CFAEF6

Accessibility & contrast

On white

5.18
#8D40EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8D40EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40EA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40EA#FFFFFF#000000##FFFFFF
##8D40EA1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#776B92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d40ea;
/* rgb */ color: rgb(141, 64, 234);
/* oklch */ color: oklch(56.3% 0.239 299.1);
Tailwind
colors: {
  custom: {
    50: '#b67cf2',
    500: '#8d40ea',
    950: '#000000',
  },
}
SCSS
$custom: #8d40ea;
$custom-light: #b67cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40ea",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 267.176,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56324,
    "c": 0.23887,
    "h": 299.1
  },
  "luminance": 0.1527
}

Semantic roles & 50–950 ramp

primary
#8D40EA
secondary
#C6E5A1
accent
#F7319D
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8D40EA

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

Preview Lab → · Contrast checker → · Palette generator →

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