#8C40BF#8C40BF

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

Color values

HEX#8C40BF
RGBrgb(140, 64, 191)
HSLhsl(276, 50%, 50%)
HSVhsv(276, 66%, 75%)
CMYKcmyk(26.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.77, 53.91, -53.62)
CIE-LCHlch(42.77, 76.04, 315.16°)
OKLaboklab(53.02% 0.1214 -0.1516)
OKLCHoklch(53.02% 0.194 308.7)
XYZxyz(22.0507, 13.0042, 50.6285)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40BF #73BF40
analogous
#4D40BF #8C40BF #BF40B2
triadic
#8C40BF #BF8C40 #40BF8C
tetradic
#8C40BF #BF4D40 #73BF40 #40B2BF
square
#8C40BF #BF4D40 #73BF40 #40B2BF
split-complementary
#8C40BF #B2BF40 #40BF4D
monochromatic
#492163 #6A3191 #8C40BF #A86ECE #C39CDE

Accessibility & contrast

On white

5.83
#8C40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8C40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40BF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40BF#FFFFFF#000000##FFFFFF
##8C40BF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2866BC
Tritanopia (blue-blind)
#845B7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8c40bf;
/* rgb */ color: rgb(140, 64, 191);
/* oklch */ color: oklch(53.0% 0.194 308.7);
Tailwind
colors: {
  custom: {
    50: '#b27ad3',
    500: '#8c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #8c40bf;
$custom-light: #b27ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40bf",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 275.906,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.5302,
    "c": 0.19425,
    "h": 308.7
  },
  "luminance": 0.13004
}

Semantic roles & 50–950 ramp

primary
#8C40BF
secondary
#A8CA91
accent
#D94E86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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