#8D40C3#8D40C3

#8D40C3 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.199 H 308.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8D40C3
RGBrgb(141, 64, 195)
HSLhsl(275, 52%, 51%)
HSVhsv(275, 67%, 76%)
CMYKcmyk(27.7%, 67.2%, 0%, 23.5%)
CIE-LABlab(43.17, 55.03, -55.30)
CIE-LCHlch(43.17, 78.02, 314.86°)
OKLaboklab(53.42% 0.1223 -0.1566)
OKLCHoklch(53.42% 0.199 308)
XYZxyz(22.6662, 13.2700, 52.9865)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C3 #76C340
analogous
#4B40C3 #8D40C3 #C340B7
triadic
#8D40C3 #C38D40 #40C38D
tetradic
#8D40C3 #C34B40 #76C340 #40B7C3
square
#8D40C3 #C34B40 #76C340 #40B7C3
split-complementary
#8D40C3 #B7C340 #40C34B
monochromatic
#4B2168 #6C2F97 #8D40C3 #A96FD2 #C59DE0

Accessibility & contrast

On white

5.75
#8D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8D40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C3
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C3#FFFFFF#000000##FFFFFF
##8D40C31.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#2467C0
Tritanopia (blue-blind)
#855C7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d40c3;
/* rgb */ color: rgb(141, 64, 195);
/* oklch */ color: oklch(53.4% 0.199 308.0);
Tailwind
colors: {
  custom: {
    50: '#b37ad6',
    500: '#8d40c3',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c3;
$custom-light: #b37ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c3",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 275.267,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.19869,
    "h": 308
  },
  "luminance": 0.1327
}

Semantic roles & 50–950 ramp

primary
#8D40C3
secondary
#AACC92
accent
#DC4C87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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