#8D40C1#8D40C1

#8D40C1 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.197 H 308.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8D40C1
RGBrgb(141, 64, 193)
HSLhsl(276, 51%, 50%)
HSVhsv(276, 67%, 76%)
CMYKcmyk(26.9%, 66.8%, 0%, 24.3%)
CIE-LABlab(43.03, 54.58, -54.35)
CIE-LCHlch(43.03, 77.03, 315.12°)
OKLaboklab(53.28% 0.1225 -0.1538)
OKLCHoklch(53.28% 0.197 308.5)
XYZxyz(22.4416, 13.1801, 51.8035)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C1 #74C140
analogous
#4C40C1 #8D40C1 #C140B4
triadic
#8D40C1 #C18D40 #40C18D
tetradic
#8D40C1 #C14C40 #74C140 #40B4C1
square
#8D40C1 #C14C40 #74C140 #40B4C1
split-complementary
#8D40C1 #B4C140 #40C14C
monochromatic
#4A2166 #6C3094 #8D40C1 #A96ED0 #C49CDF

Accessibility & contrast

On white

5.78
#8D40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8D40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C1#FFFFFF#000000##FFFFFF
##8D40C11.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#2767BE
Tritanopia (blue-blind)
#855B7B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d40c1;
/* rgb */ color: rgb(141, 64, 193);
/* oklch */ color: oklch(53.3% 0.197 308.5);
Tailwind
colors: {
  custom: {
    50: '#b27ad4',
    500: '#8d40c1',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c1;
$custom-light: #b27ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c1",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 275.814,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5328,
    "c": 0.19662,
    "h": 308.5
  },
  "luminance": 0.1318
}

Semantic roles & 50–950 ramp

primary
#8D40C1
secondary
#A9CB92
accent
#DA4D86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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