#8340C2#8340C2

#8340C2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.195 H 304.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8340C2
RGBrgb(131, 64, 194)
HSLhsl(271, 52%, 51%)
HSVhsv(271, 67%, 76%)
CMYKcmyk(32.5%, 67%, 0%, 23.9%)
CIE-LABlab(41.83, 52.68, -56.95)
CIE-LCHlch(41.83, 77.58, 312.77°)
OKLaboklab(52.16% 0.1091 -0.1617)
OKLCHoklch(52.16% 0.195 304)
XYZxyz(20.9289, 12.3872, 52.3169)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C2 #7FC240
analogous
#4240C2 #8340C2 #C240C0
triadic
#8340C2 #C28340 #40C283
tetradic
#8340C2 #C24240 #7FC240 #40C0C2
square
#8340C2 #C24240 #7FC240 #40C0C2
split-complementary
#8340C2 #C0C240 #40C242
monochromatic
#452167 #643095 #8340C2 #A16ED1 #BF9DE0

Accessibility & contrast

On white

6.04
#8340C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8340C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C2#FFFFFF#000000##FFFFFF
##8340C21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0E63BF
Tritanopia (blue-blind)
#775D7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8340c2;
/* rgb */ color: rgb(131, 64, 194);
/* oklch */ color: oklch(52.2% 0.195 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac79d5',
    500: '#8340c2',
    950: '#000000',
  },
}
SCSS
$custom: #8340c2;
$custom-light: #ac79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c2",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 270.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52159,
    "c": 0.19509,
    "h": 304
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#8340C2
secondary
#AECC92
accent
#DB4D92
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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