#8C40CC#8C40CC

#8C40CC is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.208 H 305.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8C40CC
RGBrgb(140, 64, 204)
HSLhsl(273, 58%, 53%)
HSVhsv(273, 69%, 80%)
CMYKcmyk(31.4%, 68.6%, 0%, 20%)
CIE-LABlab(43.66, 56.88, -59.73)
CIE-LCHlch(43.66, 82.48, 313.60°)
OKLaboklab(53.94% 0.12 -0.1696)
OKLCHoklch(53.94% 0.208 305.3)
XYZxyz(23.5453, 13.6020, 58.5001)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40CC #80CC40
analogous
#4640CC #8C40CC #CC40C6
triadic
#8C40CC #CC8C40 #40CC8C
tetradic
#8C40CC #CC4640 #80CC40 #40C6CC
square
#8C40CC #CC4640 #80CC40 #40C6CC
split-complementary
#8C40CC #C6CC40 #40CC46
monochromatic
#4C1F73 #6D2CA3 #8C40CC #A970D9 #C6A1E6

Accessibility & contrast

On white

5.64
#8C40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8C40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40CC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40CC#FFFFFF#000000##FFFFFF
##8C40CC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0967C9
Tritanopia (blue-blind)
#806081
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c40cc;
/* rgb */ color: rgb(140, 64, 204);
/* oklch */ color: oklch(53.9% 0.208 305.3);
Tailwind
colors: {
  custom: {
    50: '#b27adc',
    500: '#8c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #8c40cc;
$custom-light: #b27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40cc",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 272.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53937,
    "c": 0.20776,
    "h": 305.3
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#8C40CC
secondary
#B1D295
accent
#E1478D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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