#8D40BB#8D40BB

#8D40BB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.190 H 310.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8D40BB
RGBrgb(141, 64, 187)
HSLhsl(278, 49%, 49%)
HSVhsv(278, 66%, 73%)
CMYKcmyk(24.6%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.64, 53.24, -51.48)
CIE-LCHlch(42.64, 74.06, 315.96°)
OKLaboklab(52.87% 0.123 -0.1453)
OKLCHoklch(52.87% 0.19 310.2)
XYZxyz(21.7858, 12.9178, 48.3498)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40BB #6EBB40
analogous
#5040BB #8D40BB #BB40AC
triadic
#8D40BB #BB8D40 #40BB8D
tetradic
#8D40BB #BB5040 #6EBB40 #40ACBB
square
#8D40BB #BB5040 #6EBB40 #40ACBB
split-complementary
#8D40BB #ACBB40 #40BB50
monochromatic
#482160 #6B308D #8D40BB #A86CCD #C399DC

Accessibility & contrast

On white

5.86
#8D40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8D40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40BB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40BB#FFFFFF#000000##FFFFFF
##8D40BB1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#875978
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d40bb;
/* rgb */ color: rgb(141, 64, 187);
/* oklch */ color: oklch(52.9% 0.190 310.2);
Tailwind
colors: {
  custom: {
    50: '#b27ad0',
    500: '#8d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #8d40bb;
$custom-light: #b27ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40bb",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 277.561,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52871,
    "c": 0.19041,
    "h": 310.2
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#8D40BB
secondary
#A4C88F
accent
#D94F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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