#8D40BF#8D40BF

#8D40BF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.195 H 309.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8D40BF
RGBrgb(141, 64, 191)
HSLhsl(276, 50%, 50%)
HSVhsv(276, 66%, 75%)
CMYKcmyk(26.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.90, 54.13, -53.40)
CIE-LCHlch(42.90, 76.04, 315.39°)
OKLaboklab(53.14% 0.1227 -0.151)
OKLCHoklch(53.14% 0.195 309.1)
XYZxyz(22.2200, 13.0915, 50.6365)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40BF #72BF40
analogous
#4E40BF #8D40BF #BF40B1
triadic
#8D40BF #BF8D40 #40BF8D
tetradic
#8D40BF #BF4E40 #72BF40 #40B1BF
square
#8D40BF #BF4E40 #72BF40 #40B1BF
split-complementary
#8D40BF #B1BF40 #40BF4E
monochromatic
#492163 #6B3191 #8D40BF #A86ECE #C49CDE

Accessibility & contrast

On white

5.80
#8D40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8D40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40BF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40BF#FFFFFF#000000##FFFFFF
##8D40BF1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#865B7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d40bf;
/* rgb */ color: rgb(141, 64, 191);
/* oklch */ color: oklch(53.1% 0.195 309.1);
Tailwind
colors: {
  custom: {
    50: '#b27ad3',
    500: '#8d40bf',
    950: '#000000',
  },
}
SCSS
$custom: #8d40bf;
$custom-light: #b27ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40bf",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 276.378,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.53143,
    "c": 0.19454,
    "h": 309.1
  },
  "luminance": 0.13091
}

Semantic roles & 50–950 ramp

primary
#8D40BF
secondary
#A7CA91
accent
#D94E85
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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