#8340C0#8340C0

#8340C0 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.193 H 304.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8340C0
RGBrgb(131, 64, 192)
HSLhsl(271, 50%, 50%)
HSVhsv(271, 67%, 75%)
CMYKcmyk(31.8%, 66.7%, 0%, 24.7%)
CIE-LABlab(41.69, 52.21, -56.01)
CIE-LCHlch(41.69, 76.57, 312.99°)
OKLaboklab(52.02% 0.1093 -0.159)
OKLCHoklch(52.02% 0.193 304.5)
XYZxyz(20.7058, 12.2979, 51.1419)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C0 #7DC040
analogous
#4340C0 #8340C0 #C040BD
triadic
#8340C0 #C08340 #40C083
tetradic
#8340C0 #C04340 #7DC040 #40BDC0
square
#8340C0 #C04340 #7DC040 #40BDC0
split-complementary
#8340C0 #BDC040 #40C043
monochromatic
#442164 #643092 #8340C0 #A16ECF #BF9CDE

Accessibility & contrast

On white

6.07
#8340C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8340C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C0
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C0#FFFFFF#000000##FFFFFF
##8340C01.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#1562BD
Tritanopia (blue-blind)
#785C7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8340c0;
/* rgb */ color: rgb(131, 64, 192);
/* oklch */ color: oklch(52.0% 0.193 304.5);
Tailwind
colors: {
  custom: {
    50: '#ac79d4',
    500: '#8340c0',
    950: '#000000',
  },
}
SCSS
$custom: #8340c0;
$custom-light: #ac79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c0",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 271.406,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.19293,
    "h": 304.5
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#8340C0
secondary
#ADCB91
accent
#DA4E91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340C0

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

Preview Lab → · Contrast checker → · Palette generator →

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