#8340C7#8340C7

#8340C7 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.200 H 302.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8340C7
RGBrgb(131, 64, 199)
HSLhsl(270, 55%, 52%)
HSVhsv(270, 68%, 78%)
CMYKcmyk(34.2%, 67.8%, 0%, 22%)
CIE-LABlab(42.18, 53.88, -59.29)
CIE-LCHlch(42.18, 80.11, 312.27°)
OKLaboklab(52.52% 0.1085 -0.1686)
OKLCHoklch(52.52% 0.2 302.8)
XYZxyz(21.4999, 12.6156, 55.3241)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C7 #84C740
analogous
#4041C7 #8340C7 #C740C7
triadic
#8340C7 #C78340 #40C783
tetradic
#8340C7 #C74041 #84C740 #40C7C7
square
#8340C7 #C74041 #84C740 #40C7C7
split-complementary
#8340C7 #C7C740 #41C740
monochromatic
#46206D #642E9C #8340C7 #A26FD5 #C09FE3

Accessibility & contrast

On white

5.96
#8340C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8340C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C7#FFFFFF#000000##FFFFFF
##8340C71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#755F7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8340c7;
/* rgb */ color: rgb(131, 64, 199);
/* oklch */ color: oklch(52.5% 0.200 302.8);
Tailwind
colors: {
  custom: {
    50: '#ac7ad9',
    500: '#8340c7',
    950: '#000000',
  },
}
SCSS
$custom: #8340c7;
$custom-light: #ac7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c7",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 269.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.20049,
    "h": 302.8
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#8340C7
secondary
#B2CF94
accent
#DE4A94
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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