#8340BB#8340BB

#8340BB is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.188 H 305.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8340BB
RGBrgb(131, 64, 187)
HSLhsl(273, 49%, 49%)
HSVhsv(273, 66%, 73%)
CMYKcmyk(29.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(41.34, 51.02, -53.64)
CIE-LCHlch(41.34, 74.03, 313.57°)
OKLaboklab(51.66% 0.1098 -0.152)
OKLCHoklch(51.66% 0.188 305.8)
XYZxyz(20.1612, 12.0801, 48.2737)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340BB #78BB40
analogous
#4640BB #8340BB #BB40B6
triadic
#8340BB #BB8340 #40BB83
tetradic
#8340BB #BB4640 #78BB40 #40B6BB
square
#8340BB #BB4640 #78BB40 #40B6BB
split-complementary
#8340BB #B6BB40 #40BB46
monochromatic
#432160 #63308D #8340BB #A06CCD #BE99DC

Accessibility & contrast

On white

6.15
#8340BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8340BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340BB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340BB#FFFFFF#000000##FFFFFF
##8340BB1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#795A78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8340bb;
/* rgb */ color: rgb(131, 64, 187);
/* oklch */ color: oklch(51.7% 0.188 305.8);
Tailwind
colors: {
  custom: {
    50: '#ab79d0',
    500: '#8340bb',
    950: '#000000',
  },
}
SCSS
$custom: #8340bb;
$custom-light: #ab79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8340bb",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 272.683,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.1875,
    "h": 305.8
  },
  "luminance": 0.1208
}

Semantic roles & 50–950 ramp

primary
#8340BB
secondary
#A9C88F
accent
#D94F8E
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8340BB

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

Preview Lab → · Contrast checker → · Palette generator →

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