#8340BD#8340BD

#8340BD is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.190 H 305.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8340BD
RGBrgb(131, 64, 189)
HSLhsl(272, 49%, 50%)
HSVhsv(272, 66%, 74%)
CMYKcmyk(30.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(41.48, 51.50, -54.59)
CIE-LCHlch(41.48, 75.04, 313.33°)
OKLaboklab(51.8% 0.1096 -0.1548)
OKLCHoklch(51.8% 0.19 305.3)
XYZxyz(20.3768, 12.1663, 49.4091)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340BD #7ABD40
analogous
#4540BD #8340BD #BD40B9
triadic
#8340BD #BD8340 #40BD83
tetradic
#8340BD #BD4540 #7ABD40 #40B9BD
square
#8340BD #BD4540 #7ABD40 #40B9BD
split-complementary
#8340BD #B9BD40 #40BD45
monochromatic
#442162 #63318F #8340BD #A16DCD #BE9ADD

Accessibility & contrast

On white

6.12
#8340BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8340BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340BD
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340BD#FFFFFF#000000##FFFFFF
##8340BD1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#1C62BA
Tritanopia (blue-blind)
#795B79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8340bd;
/* rgb */ color: rgb(131, 64, 189);
/* oklch */ color: oklch(51.8% 0.190 305.3);
Tailwind
colors: {
  custom: {
    50: '#ab79d2',
    500: '#8340bd',
    950: '#000000',
  },
}
SCSS
$custom: #8340bd;
$custom-light: #ab79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8340bd",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 272.16,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51801,
    "c": 0.18967,
    "h": 305.3
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#8340BD
secondary
#AAC990
accent
#D94F8F
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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