#8340B9#8340B9

#8340B9 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.185 H 306.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8340B9
RGBrgb(131, 64, 185)
HSLhsl(273, 49%, 49%)
HSVhsv(273, 65%, 73%)
CMYKcmyk(29.2%, 65.4%, 0%, 27.5%)
CIE-LABlab(41.21, 50.55, -52.68)
CIE-LCHlch(41.21, 73.01, 313.82°)
OKLaboklab(51.52% 0.11 -0.1492)
OKLCHoklch(51.52% 0.185 306.4)
XYZxyz(19.9486, 11.9951, 47.1539)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340B9 #76B940
analogous
#4740B9 #8340B9 #B940B3
triadic
#8340B9 #B98340 #40B983
tetradic
#8340B9 #B94740 #76B940 #40B3B9
square
#8340B9 #B94740 #76B940 #40B3B9
split-complementary
#8340B9 #B3B940 #40B947
monochromatic
#43215E #63308C #8340B9 #A06BCC #BD98DB

Accessibility & contrast

On white

6.18
#8340B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8340B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340B9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340B9#FFFFFF#000000##FFFFFF
##8340B91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#2362B6
Tritanopia (blue-blind)
#7A5A77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8340b9;
/* rgb */ color: rgb(131, 64, 185);
/* oklch */ color: oklch(51.5% 0.185 306.4);
Tailwind
colors: {
  custom: {
    50: '#ab79cf',
    500: '#8340b9',
    950: '#000000',
  },
}
SCSS
$custom: #8340b9;
$custom-light: #ab79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8340b9",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 273.223,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5152,
    "c": 0.18533,
    "h": 306.4
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#8340B9
secondary
#A7C78E
accent
#D8508D
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8340B9

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

Preview Lab → · Contrast checker → · Palette generator →

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