#8D40BE#8D40BE

#8D40BE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.1% C 0.194 H 309.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8D40BE
RGBrgb(141, 64, 190)
HSLhsl(277, 50%, 50%)
HSVhsv(277, 66%, 75%)
CMYKcmyk(25.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.83, 53.91, -52.92)
CIE-LCHlch(42.83, 75.54, 315.53°)
OKLaboklab(53.07% 0.1228 -0.1496)
OKLCHoklch(53.07% 0.194 309.4)
XYZxyz(22.1103, 13.0476, 50.0589)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40BE #71BE40
analogous
#4E40BE #8D40BE #BE40B0
triadic
#8D40BE #BE8D40 #40BE8D
tetradic
#8D40BE #BE4E40 #71BE40 #40B0BE
square
#8D40BE #BE4E40 #71BE40 #40B0BE
split-complementary
#8D40BE #B0BE40 #40BE4E
monochromatic
#492162 #6B3190 #8D40BE #A86DCE #C49BDD

Accessibility & contrast

On white

5.82
#8D40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8D40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40BE
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40BE#FFFFFF#000000##FFFFFF
##8D40BE1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#2B66BB
Tritanopia (blue-blind)
#865A7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d40be;
/* rgb */ color: rgb(141, 64, 190);
/* oklch */ color: oklch(53.1% 0.194 309.4);
Tailwind
colors: {
  custom: {
    50: '#b27ad2',
    500: '#8d40be',
    950: '#000000',
  },
}
SCSS
$custom: #8d40be;
$custom-light: #b27ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40be",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 276.667,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53074,
    "c": 0.19352,
    "h": 309.4
  },
  "luminance": 0.13047
}

Semantic roles & 50–950 ramp

primary
#8D40BE
secondary
#A7C990
accent
#D94F85
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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