#8340C1#8340C1

#8340C1 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.1% C 0.194 H 304.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8340C1
RGBrgb(131, 64, 193)
HSLhsl(271, 51%, 50%)
HSVhsv(271, 67%, 76%)
CMYKcmyk(32.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(41.76, 52.45, -56.48)
CIE-LCHlch(41.76, 77.07, 312.88°)
OKLaboklab(52.09% 0.1092 -0.1603)
OKLCHoklch(52.09% 0.194 304.3)
XYZxyz(20.8169, 12.3424, 51.7274)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C1 #7EC140
analogous
#4340C1 #8340C1 #C140BE
triadic
#8340C1 #C18340 #40C183
tetradic
#8340C1 #C14340 #7EC140 #40BEC1
square
#8340C1 #C14340 #7EC140 #40BEC1
split-complementary
#8340C1 #BEC140 #40C143
monochromatic
#452166 #643094 #8340C1 #A16ED0 #BF9CDF

Accessibility & contrast

On white

6.05
#8340C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8340C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C1
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C1#FFFFFF#000000##FFFFFF
##8340C11.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1262BE
Tritanopia (blue-blind)
#775D7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8340c1;
/* rgb */ color: rgb(131, 64, 193);
/* oklch */ color: oklch(52.1% 0.194 304.3);
Tailwind
colors: {
  custom: {
    50: '#ac79d4',
    500: '#8340c1',
    950: '#000000',
  },
}
SCSS
$custom: #8340c1;
$custom-light: #ac79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c1",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 271.163,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.194,
    "h": 304.3
  },
  "luminance": 0.12342
}

Semantic roles & 50–950 ramp

primary
#8340C1
secondary
#ADCB92
accent
#DA4D91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340C1

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

Preview Lab → · Contrast checker → · Palette generator →

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