#8B40DD#8B40DD

#8B40DD is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.225 H 301.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8B40DD
RGBrgb(139, 64, 221)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 71%, 87%)
CMYKcmyk(37.1%, 71%, 0%, 13.3%)
CIE-LABlab(44.77, 60.67, -67.70)
CIE-LCHlch(44.77, 90.91, 311.87°)
OKLaboklab(55.09% 0.116 -0.1931)
OKLCHoklch(55.09% 0.225 301)
XYZxyz(25.5288, 14.3760, 69.8225)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40DD #92DD40
analogous
#4043DD #8B40DD #D940DD
triadic
#8B40DD #DD8B40 #40DD8B
tetradic
#8B40DD #DD4043 #92DD40 #40DDD9
square
#8B40DD #DD4043 #92DD40 #40DDD9
split-complementary
#8B40DD #DDD940 #43DD40
monochromatic
#4F198A #6C22BE #8B40DD #AB74E6 #CAA8EF

Accessibility & contrast

On white

5.42
#8B40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8B40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40DD
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40DD#FFFFFF#000000##FFFFFF
##8B40DD1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#79668B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b40dd;
/* rgb */ color: rgb(139, 64, 221);
/* oklch */ color: oklch(55.1% 0.225 301.0);
Tailwind
colors: {
  custom: {
    50: '#b37be9',
    500: '#8b40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8b40dd;
$custom-light: #b37be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40dd",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 268.662,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55089,
    "c": 0.22521,
    "h": 301
  },
  "luminance": 0.14376
}

Semantic roles & 50–950 ramp

primary
#8B40DD
secondary
#BEDD9C
accent
#ED3B98
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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