#8C40C8#8C40C8

#8C40C8 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.204 H 306.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8C40C8
RGBrgb(140, 64, 200)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 68%, 78%)
CMYKcmyk(30%, 68%, 0%, 21.6%)
CIE-LABlab(43.38, 55.96, -57.87)
CIE-LCHlch(43.38, 80.50, 314.04°)
OKLaboklab(53.65% 0.1205 -0.1641)
OKLCHoklch(53.65% 0.204 306.3)
XYZxyz(23.0717, 13.4126, 56.0058)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40C8 #7CC840
analogous
#4840C8 #8C40C8 #C840C0
triadic
#8C40C8 #C88C40 #40C88C
tetradic
#8C40C8 #C84840 #7CC840 #40C0C8
square
#8C40C8 #C84840 #7CC840 #40C0C8
split-complementary
#8C40C8 #C0C840 #40C848
monochromatic
#4B206E #6C2D9D #8C40C8 #A970D6 #C59FE3

Accessibility & contrast

On white

5.70
#8C40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8C40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40C8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40C8#FFFFFF#000000##FFFFFF
##8C40C81.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#1767C5
Tritanopia (blue-blind)
#825E7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8c40c8;
/* rgb */ color: rgb(140, 64, 200);
/* oklch */ color: oklch(53.6% 0.204 306.3);
Tailwind
colors: {
  custom: {
    50: '#b27ad9',
    500: '#8c40c8',
    950: '#000000',
  },
}
SCSS
$custom: #8c40c8;
$custom-light: #b27ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40c8",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 273.529,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.20361,
    "h": 306.3
  },
  "luminance": 0.13412
}

Semantic roles & 50–950 ramp

primary
#8C40C8
secondary
#AED094
accent
#DF498B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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