#8340BF#8340BF

#8340BF is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.192 H 304.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8340BF
RGBrgb(131, 64, 191)
HSLhsl(272, 50%, 50%)
HSVhsv(272, 66%, 75%)
CMYKcmyk(31.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(41.62, 51.97, -55.54)
CIE-LCHlch(41.62, 76.06, 313.10°)
OKLaboklab(51.94% 0.1094 -0.1576)
OKLCHoklch(51.94% 0.192 304.8)
XYZxyz(20.5953, 12.2538, 50.5603)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340BF #7CBF40
analogous
#4440BF #8340BF #BF40BB
triadic
#8340BF #BF8340 #40BF83
tetradic
#8340BF #BF4440 #7CBF40 #40BBBF
square
#8340BF #BF4440 #7CBF40 #40BBBF
split-complementary
#8340BF #BBBF40 #40BF44
monochromatic
#442163 #643191 #8340BF #A16ECE #BF9CDE

Accessibility & contrast

On white

6.09
#8340BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8340BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340BF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340BF#FFFFFF#000000##FFFFFF
##8340BF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#1762BC
Tritanopia (blue-blind)
#785C7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8340bf;
/* rgb */ color: rgb(131, 64, 191);
/* oklch */ color: oklch(51.9% 0.192 304.8);
Tailwind
colors: {
  custom: {
    50: '#ac79d3',
    500: '#8340bf',
    950: '#000000',
  },
}
SCSS
$custom: #8340bf;
$custom-light: #ac79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8340bf",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 271.654,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.19184,
    "h": 304.8
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

primary
#8340BF
secondary
#ACCA91
accent
#D94E90
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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