#8D40C7#8D40C7

#8D40C7 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.203 H 306.9°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8D40C7
RGBrgb(141, 64, 199)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 68%, 78%)
CMYKcmyk(29.1%, 67.8%, 0%, 22%)
CIE-LABlab(43.44, 55.94, -57.19)
CIE-LCHlch(43.44, 80.00, 314.37°)
OKLaboklab(53.7% 0.1219 -0.1621)
OKLCHoklch(53.7% 0.203 306.9)
XYZxyz(23.1245, 13.4533, 55.4003)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C7 #7AC740
analogous
#4A40C7 #8D40C7 #C740BE
triadic
#8D40C7 #C78D40 #40C78D
tetradic
#8D40C7 #C74A40 #7AC740 #40BEC7
square
#8D40C7 #C74A40 #7AC740 #40BEC7
split-complementary
#8D40C7 #BEC740 #40C74A
monochromatic
#4C206D #6D2E9C #8D40C7 #A96FD5 #C59FE3

Accessibility & contrast

On white

5.69
#8D40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8D40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C7#FFFFFF#000000##FFFFFF
##8D40C71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#1C67C4
Tritanopia (blue-blind)
#835E7E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40c7;
/* rgb */ color: rgb(141, 64, 199);
/* oklch */ color: oklch(53.7% 0.203 306.9);
Tailwind
colors: {
  custom: {
    50: '#b37ad9',
    500: '#8d40c7',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c7;
$custom-light: #b37ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c7",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 274.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53699,
    "c": 0.20283,
    "h": 306.9
  },
  "luminance": 0.13453
}

Semantic roles & 50–950 ramp

primary
#8D40C7
secondary
#ADCF94
accent
#DE4A89
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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