#8340B3#8340B3

#8340B3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.179 H 308.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8340B3
RGBrgb(131, 64, 179)
HSLhsl(275, 47%, 48%)
HSVhsv(275, 64%, 70%)
CMYKcmyk(26.8%, 64.2%, 0%, 29.8%)
CIE-LABlab(40.81, 49.15, -49.79)
CIE-LCHlch(40.81, 69.96, 314.63°)
OKLaboklab(51.11% 0.1104 -0.1407)
OKLCHoklch(51.11% 0.179 308.1)
XYZxyz(19.3285, 11.7470, 43.8883)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340B3 #70B340
analogous
#4A40B3 #8340B3 #B340A9
triadic
#8340B3 #B38340 #40B383
tetradic
#8340B3 #B34A40 #70B340 #40A9B3
square
#8340B3 #B34A40 #70B340 #40A9B3
split-complementary
#8340B3 #A9B340 #40B34A
monochromatic
#412059 #623086 #8340B3 #A067C9 #BC94D9

Accessibility & contrast

On white

6.27
#8340B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8340B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340B3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340B3#FFFFFF#000000##FFFFFF
##8340B31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#2C61B0
Tritanopia (blue-blind)
#7C5874
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8340b3;
/* rgb */ color: rgb(131, 64, 179);
/* oklch */ color: oklch(51.1% 0.179 308.1);
Tailwind
colors: {
  custom: {
    50: '#ab79ca',
    500: '#8340b3',
    950: '#000000',
  },
}
SCSS
$custom: #8340b3;
$custom-light: #ab79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8340b3",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 274.957,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51107,
    "c": 0.17882,
    "h": 308.1
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#8340B3
secondary
#A3C48A
accent
#D75189
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340B3

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

Preview Lab → · Contrast checker → · Palette generator →

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