#8B40C0#8B40C0

#8B40C0 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.195 H 308.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8B40C0
RGBrgb(139, 64, 192)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 67%, 75%)
CMYKcmyk(27.6%, 66.7%, 0%, 24.7%)
CIE-LABlab(42.71, 53.92, -54.31)
CIE-LCHlch(42.71, 76.53, 314.79°)
OKLaboklab(52.97% 0.12 -0.1537)
OKLCHoklch(52.97% 0.195 308)
XYZxyz(21.9933, 12.9618, 51.2022)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40C0 #75C040
analogous
#4B40C0 #8B40C0 #C040B5
triadic
#8B40C0 #C08B40 #40C08B
tetradic
#8B40C0 #C04B40 #75C040 #40B5C0
square
#8B40C0 #C04B40 #75C040 #40B5C0
split-complementary
#8B40C0 #B5C040 #40C04B
monochromatic
#492164 #6A3092 #8B40C0 #A76ECF #C39CDE

Accessibility & contrast

On white

5.85
#8B40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8B40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40C0
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40C0#FFFFFF#000000##FFFFFF
##8B40C01.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#2566BD
Tritanopia (blue-blind)
#835B7B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b40c0;
/* rgb */ color: rgb(139, 64, 192);
/* oklch */ color: oklch(53.0% 0.195 308.0);
Tailwind
colors: {
  custom: {
    50: '#b17ad4',
    500: '#8b40c0',
    950: '#000000',
  },
}
SCSS
$custom: #8b40c0;
$custom-light: #b17ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40c0",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 275.156,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52968,
    "c": 0.195,
    "h": 308
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#8B40C0
secondary
#A9CB91
accent
#DA4E88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8B40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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