#8340C4#8340C4

#8340C4 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.197 H 303.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8340C4
RGBrgb(131, 64, 196)
HSLhsl(270, 53%, 51%)
HSVhsv(270, 67%, 77%)
CMYKcmyk(33.2%, 67.3%, 0%, 23.1%)
CIE-LABlab(41.97, 53.16, -57.89)
CIE-LCHlch(41.97, 78.59, 312.56°)
OKLaboklab(52.3% 0.1089 -0.1645)
OKLCHoklch(52.3% 0.197 303.5)
XYZxyz(21.1550, 12.4776, 53.5078)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C4 #81C440
analogous
#4140C4 #8340C4 #C440C3
triadic
#8340C4 #C48340 #40C483
tetradic
#8340C4 #C44140 #81C440 #40C3C4
square
#8340C4 #C44140 #81C440 #40C3C4
split-complementary
#8340C4 #C3C440 #40C441
monochromatic
#452069 #642F98 #8340C4 #A16FD2 #C09EE1

Accessibility & contrast

On white

6.01
#8340C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8340C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C4#FFFFFF#000000##FFFFFF
##8340C41.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0563C1
Tritanopia (blue-blind)
#765E7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8340c4;
/* rgb */ color: rgb(131, 64, 196);
/* oklch */ color: oklch(52.3% 0.197 303.5);
Tailwind
colors: {
  custom: {
    50: '#ac79d7',
    500: '#8340c4',
    950: '#000000',
  },
}
SCSS
$custom: #8340c4;
$custom-light: #ac79d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c4",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 270.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52304,
    "c": 0.19725,
    "h": 303.5
  },
  "luminance": 0.12478
}

Semantic roles & 50–950 ramp

primary
#8340C4
secondary
#AFCD93
accent
#DC4C93
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340C4

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

Preview Lab → · Contrast checker → · Palette generator →

#8340C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva