#8C40CD#8C40CD

#8C40CD is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.209 H 305.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8C40CD
RGBrgb(140, 64, 205)
HSLhsl(272, 59%, 53%)
HSVhsv(272, 69%, 80%)
CMYKcmyk(31.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(43.73, 57.11, -60.20)
CIE-LCHlch(43.73, 82.98, 313.49°)
OKLaboklab(54.01% 0.1199 -0.171)
OKLCHoklch(54.01% 0.209 305)
XYZxyz(23.6656, 13.6502, 59.1338)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40CD #81CD40
analogous
#4540CD #8C40CD #CD40C8
triadic
#8C40CD #CD8C40 #40CD8C
tetradic
#8C40CD #CD4540 #81CD40 #40C8CD
square
#8C40CD #CD4540 #81CD40 #40C8CD
split-complementary
#8C40CD #C8CD40 #40CD45
monochromatic
#4D1E74 #6D2BA5 #8C40CD #A971DA #C6A1E6

Accessibility & contrast

On white

5.63
#8C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8C40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40CD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40CD#FFFFFF#000000##FFFFFF
##8C40CD1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0467CA
Tritanopia (blue-blind)
#806082
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8c40cd;
/* rgb */ color: rgb(140, 64, 205);
/* oklch */ color: oklch(54.0% 0.209 305.0);
Tailwind
colors: {
  custom: {
    50: '#b37bdd',
    500: '#8c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c40cd;
$custom-light: #b37bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40cd",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 272.34,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5401,
    "c": 0.2088,
    "h": 305
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#8C40CD
secondary
#B2D396
accent
#E2468E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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