#8340B7#8340B7

#8340B7 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.183 H 307.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8340B7
RGBrgb(131, 64, 183)
HSLhsl(274, 48%, 48%)
HSVhsv(274, 65%, 72%)
CMYKcmyk(28.4%, 65%, 0%, 28.2%)
CIE-LABlab(41.07, 50.08, -51.72)
CIE-LCHlch(41.07, 72.00, 314.08°)
OKLaboklab(51.38% 0.1101 -0.1464)
OKLCHoklch(51.38% 0.183 307)
XYZxyz(19.7389, 11.9112, 46.0498)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340B7 #74B740
analogous
#4840B7 #8340B7 #B740AF
triadic
#8340B7 #B78340 #40B783
tetradic
#8340B7 #B74840 #74B740 #40AFB7
square
#8340B7 #B74840 #74B740 #40AFB7
split-complementary
#8340B7 #AFB740 #40B748
monochromatic
#42205C #63308A #8340B7 #A069CB #BD97DB

Accessibility & contrast

On white

6.21
#8340B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8340B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340B7
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340B7#FFFFFF#000000##FFFFFF
##8340B71.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2661B4
Tritanopia (blue-blind)
#7B5976
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8340b7;
/* rgb */ color: rgb(131, 64, 183);
/* oklch */ color: oklch(51.4% 0.183 307.0);
Tailwind
colors: {
  custom: {
    50: '#ab79cd',
    500: '#8340b7',
    950: '#000000',
  },
}
SCSS
$custom: #8340b7;
$custom-light: #ab79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8340b7",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 273.782,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51381,
    "c": 0.18316,
    "h": 307
  },
  "luminance": 0.11911
}

Semantic roles & 50–950 ramp

primary
#8340B7
secondary
#A6C68D
accent
#D8508B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340B7

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

Preview Lab → · Contrast checker → · Palette generator →

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