#8C40CB#8C40CB

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

Color values

HEX#8C40CB
RGBrgb(140, 64, 203)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 68%, 80%)
CMYKcmyk(31%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.59, 56.65, -59.27)
CIE-LCHlch(43.59, 81.99, 313.70°)
OKLaboklab(53.86% 0.1201 -0.1682)
OKLCHoklch(53.86% 0.207 305.5)
XYZxyz(23.4257, 13.5542, 57.8705)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40CB #7FCB40
analogous
#4740CB #8C40CB #CB40C4
triadic
#8C40CB #CB8C40 #40CB8C
tetradic
#8C40CB #CB4740 #7FCB40 #40C4CB
square
#8C40CB #CB4740 #7FCB40 #40C4CB
split-complementary
#8C40CB #C4CB40 #40CB47
monochromatic
#4C1F72 #6C2CA2 #8C40CB #A970D8 #C6A0E5

Accessibility & contrast

On white

5.66
#8C40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8C40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40CB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40CB#FFFFFF#000000##FFFFFF
##8C40CB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0E67C8
Tritanopia (blue-blind)
#815F81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c40cb;
/* rgb */ color: rgb(140, 64, 203);
/* oklch */ color: oklch(53.9% 0.207 305.5);
Tailwind
colors: {
  custom: {
    50: '#b27adc',
    500: '#8c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8c40cb;
$custom-light: #b27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40cb",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 272.806,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53865,
    "c": 0.20672,
    "h": 305.5
  },
  "luminance": 0.13554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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