#8C40CF#8C40CF

#8C40CF is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.211 H 304.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8C40CF
RGBrgb(140, 64, 207)
HSLhsl(272, 60%, 53%)
HSVhsv(272, 69%, 81%)
CMYKcmyk(32.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(43.87, 57.57, -61.12)
CIE-LCHlch(43.87, 83.97, 313.29°)
OKLaboklab(54.16% 0.1196 -0.1737)
OKLCHoklch(54.16% 0.211 304.5)
XYZxyz(23.9086, 13.7473, 60.4133)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40CF #83CF40
analogous
#4440CF #8C40CF #CF40CB
triadic
#8C40CF #CF8C40 #40CF8C
tetradic
#8C40CF #CF4440 #83CF40 #40CBCF
square
#8C40CF #CF4440 #83CF40 #40CBCF
split-complementary
#8C40CF #CBCF40 #40CF44
monochromatic
#4D1E77 #6D2AA8 #8C40CF #A971DB #C7A2E8

Accessibility & contrast

On white

5.60
#8C40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8C40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40CF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40CF#FFFFFF#000000##FFFFFF
##8C40CF1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#7F6183
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c40cf;
/* rgb */ color: rgb(140, 64, 207);
/* oklch */ color: oklch(54.2% 0.211 304.5);
Tailwind
colors: {
  custom: {
    50: '#b37bdf',
    500: '#8c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #8c40cf;
$custom-light: #b37bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40cf",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 271.888,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54155,
    "c": 0.21088,
    "h": 304.5
  },
  "luminance": 0.13747
}

Semantic roles & 50–950 ramp

primary
#8C40CF
secondary
#B3D497
accent
#E3458F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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