#8B40D8#8B40D8

#8B40D8 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.7% C 0.220 H 302.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8B40D8
RGBrgb(139, 64, 216)
HSLhsl(270, 66%, 55%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(35.6%, 70.4%, 0%, 15.3%)
CIE-LABlab(44.40, 59.49, -65.44)
CIE-LCHlch(44.40, 88.44, 312.27°)
OKLaboklab(54.71% 0.1168 -0.1864)
OKLCHoklch(54.71% 0.22 302.1)
XYZxyz(24.8726, 14.1135, 66.3662)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40D8 #8DD840
analogous
#4041D8 #8B40D8 #D740D8
triadic
#8B40D8 #D88B40 #40D88B
tetradic
#8B40D8 #D84041 #8DD840 #40D8D7
square
#8B40D8 #D84041 #8DD840 #40D8D7
split-complementary
#8B40D8 #D8D740 #41D840
monochromatic
#4E1B83 #6C25B6 #8B40D8 #AA73E2 #C9A6ED

Accessibility & contrast

On white

5.49
#8B40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8B40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40D8
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40D8#FFFFFF#000000##FFFFFF
##8B40D81.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#7B6588
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b40d8;
/* rgb */ color: rgb(139, 64, 216);
/* oklch */ color: oklch(54.7% 0.220 302.1);
Tailwind
colors: {
  custom: {
    50: '#b37be5',
    500: '#8b40d8',
    950: '#000000',
  },
}
SCSS
$custom: #8b40d8;
$custom-light: #b37be5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40d8",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 269.605,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54708,
    "c": 0.22002,
    "h": 302.1
  },
  "luminance": 0.14114
}

Semantic roles & 50–950 ramp

primary
#8B40D8
secondary
#BADA9A
accent
#E93F95
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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