#8D40B7#8D40B7

#8D40B7 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.186 H 311.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8D40B7
RGBrgb(141, 64, 183)
HSLhsl(279, 48%, 48%)
HSVhsv(279, 65%, 72%)
CMYKcmyk(23%, 65%, 0%, 28.2%)
CIE-LABlab(42.38, 52.36, -49.55)
CIE-LCHlch(42.38, 72.09, 316.58°)
OKLaboklab(52.6% 0.1233 -0.1397)
OKLCHoklch(52.6% 0.186 311.4)
XYZxyz(21.3636, 12.7489, 46.1260)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40B7 #6AB740
analogous
#5240B7 #8D40B7 #B740A5
triadic
#8D40B7 #B78D40 #40B78D
tetradic
#8D40B7 #B75240 #6AB740 #40A5B7
square
#8D40B7 #B75240 #6AB740 #40A5B7
split-complementary
#8D40B7 #A5B740 #40B752
monochromatic
#47205C #6A308A #8D40B7 #A869CB #C397DB

Accessibility & contrast

On white

5.92
#8D40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8D40B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40B7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40B7#FFFFFF#000000##FFFFFF
##8D40B71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#3466B4
Tritanopia (blue-blind)
#885876
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d40b7;
/* rgb */ color: rgb(141, 64, 183);
/* oklch */ color: oklch(52.6% 0.186 311.4);
Tailwind
colors: {
  custom: {
    50: '#b27acd',
    500: '#8d40b7',
    950: '#000000',
  },
}
SCSS
$custom: #8d40b7;
$custom-light: #b27acd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40b7",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 278.824,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.18627,
    "h": 311.4
  },
  "luminance": 0.12748
}

Semantic roles & 50–950 ramp

primary
#8D40B7
secondary
#A1C68D
accent
#D85080
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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