#8C40CE#8C40CE

#8C40CE is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.210 H 304.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8C40CE
RGBrgb(140, 64, 206)
HSLhsl(272, 59%, 53%)
HSVhsv(272, 69%, 81%)
CMYKcmyk(32%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.80, 57.34, -60.66)
CIE-LCHlch(43.80, 83.47, 313.39°)
OKLaboklab(54.08% 0.1197 -0.1723)
OKLCHoklch(54.08% 0.21 304.8)
XYZxyz(23.7867, 13.6986, 59.7715)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40CE #82CE40
analogous
#4540CE #8C40CE #CE40C9
triadic
#8C40CE #CE8C40 #40CE8C
tetradic
#8C40CE #CE4540 #82CE40 #40C9CE
square
#8C40CE #CE4540 #82CE40 #40C9CE
split-complementary
#8C40CE #C9CE40 #40CE45
monochromatic
#4D1E75 #6D2BA6 #8C40CE #A971DA #C7A1E7

Accessibility & contrast

On white

5.62
#8C40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8C40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40CE
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40CE#FFFFFF#000000##FFFFFF
##8C40CE1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0068CB
Tritanopia (blue-blind)
#806182
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c40ce;
/* rgb */ color: rgb(140, 64, 206);
/* oklch */ color: oklch(54.1% 0.210 304.8);
Tailwind
colors: {
  custom: {
    50: '#b37bde',
    500: '#8c40ce',
    950: '#000000',
  },
}
SCSS
$custom: #8c40ce;
$custom-light: #b37bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40ce",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 272.113,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.20984,
    "h": 304.8
  },
  "luminance": 0.13698
}

Semantic roles & 50–950 ramp

primary
#8C40CE
secondary
#B3D496
accent
#E2458E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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