#8340C3#8340C3

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

Color values

HEX#8340C3
RGBrgb(131, 64, 195)
HSLhsl(271, 52%, 51%)
HSVhsv(271, 67%, 76%)
CMYKcmyk(32.8%, 67.2%, 0%, 23.5%)
CIE-LABlab(41.90, 52.92, -57.42)
CIE-LCHlch(41.90, 78.09, 312.67°)
OKLaboklab(52.23% 0.109 -0.1631)
OKLCHoklch(52.23% 0.196 303.7)
XYZxyz(21.0415, 12.4323, 52.9103)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C3 #80C340
analogous
#4140C3 #8340C3 #C340C1
triadic
#8340C3 #C38340 #40C383
tetradic
#8340C3 #C34140 #80C340 #40C1C3
square
#8340C3 #C34140 #80C340 #40C1C3
split-complementary
#8340C3 #C1C340 #40C341
monochromatic
#452168 #642F97 #8340C3 #A16FD2 #BF9DE0

Accessibility & contrast

On white

6.02
#8340C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8340C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C3
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C3#FFFFFF#000000##FFFFFF
##8340C31.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8340c3;
/* rgb */ color: rgb(131, 64, 195);
/* oklch */ color: oklch(52.2% 0.196 303.7);
Tailwind
colors: {
  custom: {
    50: '#ac79d6',
    500: '#8340c3',
    950: '#000000',
  },
}
SCSS
$custom: #8340c3;
$custom-light: #ac79d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c3",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 270.687,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52231,
    "c": 0.19618,
    "h": 303.7
  },
  "luminance": 0.12432
}

Semantic roles & 50–950 ramp

primary
#8340C3
secondary
#AFCC92
accent
#DC4C92
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340C3

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

Preview Lab → · Contrast checker → · Palette generator →

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