#8D40C4#8D40C4

#8D40C4 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.5% C 0.200 H 307.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8D40C4
RGBrgb(141, 64, 196)
HSLhsl(275, 53%, 51%)
HSVhsv(275, 67%, 77%)
CMYKcmyk(28.1%, 67.3%, 0%, 23.1%)
CIE-LABlab(43.23, 55.26, -55.77)
CIE-LCHlch(43.23, 78.51, 314.73°)
OKLaboklab(53.49% 0.1222 -0.1579)
OKLCHoklch(53.49% 0.2 307.7)
XYZxyz(22.7796, 13.3154, 53.5839)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C4 #77C440
analogous
#4B40C4 #8D40C4 #C440B9
triadic
#8D40C4 #C48D40 #40C48D
tetradic
#8D40C4 #C44B40 #77C440 #40B9C4
square
#8D40C4 #C44B40 #77C440 #40B9C4
split-complementary
#8D40C4 #B9C440 #40C44B
monochromatic
#4B2069 #6C2F98 #8D40C4 #A96FD2 #C59EE1

Accessibility & contrast

On white

5.73
#8D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8D40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C4#FFFFFF#000000##FFFFFF
##8D40C41.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#2267C1
Tritanopia (blue-blind)
#845D7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d40c4;
/* rgb */ color: rgb(141, 64, 196);
/* oklch */ color: oklch(53.5% 0.200 307.7);
Tailwind
colors: {
  custom: {
    50: '#b37ad7',
    500: '#8d40c4',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c4;
$custom-light: #b37ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c4",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 275,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.19973,
    "h": 307.7
  },
  "luminance": 0.13315
}

Semantic roles & 50–950 ramp

primary
#8D40C4
secondary
#ABCD93
accent
#DC4C88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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