#8C40D8#8C40D8

#8C40D8 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.8% C 0.220 H 302.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8C40D8
RGBrgb(140, 64, 216)
HSLhsl(270, 66%, 55%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(35.2%, 70.4%, 0%, 15.3%)
CIE-LABlab(44.52, 59.68, -65.24)
CIE-LCHlch(44.52, 88.41, 312.45°)
OKLaboklab(54.82% 0.1182 -0.1858)
OKLCHoklch(54.82% 0.22 302.5)
XYZxyz(25.0403, 14.2001, 66.3741)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40D8 #8CD840
analogous
#4040D8 #8C40D8 #D840D8
triadic
#8C40D8 #D88C40 #40D88C
tetradic
#8C40D8 #D84040 #8CD840 #40D8D8
square
#8C40D8 #D84040 #8CD840 #40D8D8
split-complementary
#8C40D8 #D8D840 #40D840
monochromatic
#4F1B83 #6D25B6 #8C40D8 #AB73E2 #C9A6ED

Accessibility & contrast

On white

5.47
#8C40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8C40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40D8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40D8#FFFFFF#000000##FFFFFF
##8C40D81.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c40d8;
/* rgb */ color: rgb(140, 64, 216);
/* oklch */ color: oklch(54.8% 0.220 302.5);
Tailwind
colors: {
  custom: {
    50: '#b37be5',
    500: '#8c40d8',
    950: '#000000',
  },
}
SCSS
$custom: #8c40d8;
$custom-light: #b37be5;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40d8",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 270,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54823,
    "c": 0.22021,
    "h": 302.5
  },
  "luminance": 0.142
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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