#8D40C2#8D40C2

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

Color values

HEX#8D40C2
RGBrgb(141, 64, 194)
HSLhsl(276, 52%, 51%)
HSVhsv(276, 67%, 76%)
CMYKcmyk(27.3%, 67%, 0%, 23.9%)
CIE-LABlab(43.10, 54.81, -54.83)
CIE-LCHlch(43.10, 77.52, 314.99°)
OKLaboklab(53.35% 0.1224 -0.1552)
OKLCHoklch(53.35% 0.198 308.3)
XYZxyz(22.5535, 13.2249, 52.3930)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C2 #75C240
analogous
#4C40C2 #8D40C2 #C240B6
triadic
#8D40C2 #C28D40 #40C28D
tetradic
#8D40C2 #C24C40 #75C240 #40B6C2
square
#8D40C2 #C24C40 #75C240 #40B6C2
split-complementary
#8D40C2 #B6C240 #40C24C
monochromatic
#4A2167 #6C3095 #8D40C2 #A96ED1 #C49DE0

Accessibility & contrast

On white

5.76
#8D40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D40C2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C2#FFFFFF#000000##FFFFFF
##8D40C21.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#2667BF
Tritanopia (blue-blind)
#855C7C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d40c2;
/* rgb */ color: rgb(141, 64, 194);
/* oklch */ color: oklch(53.3% 0.198 308.3);
Tailwind
colors: {
  custom: {
    50: '#b27ad5',
    500: '#8d40c2',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c2;
$custom-light: #b27ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c2",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 275.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53349,
    "c": 0.19765,
    "h": 308.3
  },
  "luminance": 0.13225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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