#8340CD#8340CD

#8340CD is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.207 H 301.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8340CD
RGBrgb(131, 64, 205)
HSLhsl(269, 59%, 53%)
HSVhsv(269, 69%, 80%)
CMYKcmyk(36.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(42.61, 55.33, -62.06)
CIE-LCHlch(42.61, 83.14, 311.72°)
OKLaboklab(52.97% 0.1077 -0.1767)
OKLCHoklch(52.97% 0.207 301.3)
XYZxyz(22.2103, 12.8997, 59.0655)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340CD #8ACD40
analogous
#4043CD #8340CD #CA40CD
triadic
#8340CD #CD8340 #40CD83
tetradic
#8340CD #CD4043 #8ACD40 #40CDCA
square
#8340CD #CD4043 #8ACD40 #40CDCA
split-complementary
#8340CD #CDCA40 #43CD40
monochromatic
#471E74 #652BA5 #8340CD #A271DA #C2A1E6

Accessibility & contrast

On white

5.87
#8340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8340CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340CD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340CD#FFFFFF#000000##FFFFFF
##8340CD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#736182
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8340cd;
/* rgb */ color: rgb(131, 64, 205);
/* oklch */ color: oklch(53.0% 0.207 301.3);
Tailwind
colors: {
  custom: {
    50: '#ad7add',
    500: '#8340cd',
    950: '#000000',
  },
}
SCSS
$custom: #8340cd;
$custom-light: #ad7add;
$custom-dark: #000000;
JSON
{
  "hex": "#8340cd",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 268.511,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5297,
    "c": 0.20696,
    "h": 301.3
  },
  "luminance": 0.129
}

Semantic roles & 50–950 ramp

primary
#8340CD
secondary
#B6D396
accent
#E24698
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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