#8340BA#8340BA

#8340BA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.186 H 306.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8340BA
RGBrgb(131, 64, 186)
HSLhsl(273, 49%, 49%)
HSVhsv(273, 66%, 73%)
CMYKcmyk(29.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(41.28, 50.79, -53.16)
CIE-LCHlch(41.28, 73.52, 313.69°)
OKLaboklab(51.59% 0.1099 -0.1506)
OKLCHoklch(51.59% 0.186 306.1)
XYZxyz(20.0545, 12.0374, 47.7118)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340BA #77BA40
analogous
#4640BA #8340BA #BA40B4
triadic
#8340BA #BA8340 #40BA83
tetradic
#8340BA #BA4640 #77BA40 #40B4BA
square
#8340BA #BA4640 #77BA40 #40B4BA
split-complementary
#8340BA #B4BA40 #40BA46
monochromatic
#43215F #63308C #8340BA #A06BCC #BE99DC

Accessibility & contrast

On white

6.16
#8340BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8340BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340BA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340BA#FFFFFF#000000##FFFFFF
##8340BA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#2162B7
Tritanopia (blue-blind)
#7A5A77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8340ba;
/* rgb */ color: rgb(131, 64, 186);
/* oklch */ color: oklch(51.6% 0.186 306.1);
Tailwind
colors: {
  custom: {
    50: '#ab79cf',
    500: '#8340ba',
    950: '#000000',
  },
}
SCSS
$custom: #8340ba;
$custom-light: #ab79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ba",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 272.951,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5159,
    "c": 0.18642,
    "h": 306.1
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#8340BA
secondary
#A8C88E
accent
#D84F8D
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8340BA

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

Preview Lab → · Contrast checker → · Palette generator →

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