#8B40D7#8B40D7

#8B40D7 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.219 H 302.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8B40D7
RGBrgb(139, 64, 215)
HSLhsl(270, 65%, 55%)
HSVhsv(270, 70%, 84%)
CMYKcmyk(35.3%, 70.2%, 0%, 15.7%)
CIE-LABlab(44.32, 59.25, -64.99)
CIE-LCHlch(44.32, 87.95, 312.36°)
OKLaboklab(54.63% 0.117 -0.1851)
OKLCHoklch(54.63% 0.219 302.3)
XYZxyz(24.7437, 14.0620, 65.6875)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40D7 #8CD740
analogous
#4041D7 #8B40D7 #D640D7
triadic
#8B40D7 #D78B40 #40D78B
tetradic
#8B40D7 #D74041 #8CD740 #40D7D6
square
#8B40D7 #D74041 #8CD740 #40D7D6
split-complementary
#8B40D7 #D7D640 #41D740
monochromatic
#4E1B81 #6C26B4 #8B40D7 #AA73E2 #C8A5EC

Accessibility & contrast

On white

5.51
#8B40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8B40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40D7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40D7#FFFFFF#000000##FFFFFF
##8B40D71.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#7B6487
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b40d7;
/* rgb */ color: rgb(139, 64, 215);
/* oklch */ color: oklch(54.6% 0.219 302.3);
Tailwind
colors: {
  custom: {
    50: '#b37be4',
    500: '#8b40d7',
    950: '#000000',
  },
}
SCSS
$custom: #8b40d7;
$custom-light: #b37be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40d7",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 269.801,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54633,
    "c": 0.21899,
    "h": 302.3
  },
  "luminance": 0.14062
}

Semantic roles & 50–950 ramp

primary
#8B40D7
secondary
#BAD99A
accent
#E83F94
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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