#8340B2#8340B2

#8340B2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.178 H 308.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8340B2
RGBrgb(131, 64, 178)
HSLhsl(275, 47%, 47%)
HSVhsv(275, 64%, 70%)
CMYKcmyk(26.4%, 64%, 0%, 30.2%)
CIE-LABlab(40.75, 48.92, -49.30)
CIE-LCHlch(40.75, 69.46, 314.78°)
OKLaboklab(51.04% 0.1104 -0.1393)
OKLCHoklch(51.04% 0.178 308.4)
XYZxyz(19.2277, 11.7067, 43.3576)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340B2 #6FB240
analogous
#4A40B2 #8340B2 #B240A8
triadic
#8340B2 #B28340 #40B283
tetradic
#8340B2 #B24A40 #6FB240 #40A8B2
square
#8340B2 #B24A40 #6FB240 #40A8B2
split-complementary
#8340B2 #A8B240 #40B24A
monochromatic
#412058 #623085 #8340B2 #A067C8 #BC94D8

Accessibility & contrast

On white

6.29
#8340B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8340B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340B2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340B2#FFFFFF#000000##FFFFFF
##8340B21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#7C5773
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8340b2;
/* rgb */ color: rgb(131, 64, 178);
/* oklch */ color: oklch(51.0% 0.178 308.4);
Tailwind
colors: {
  custom: {
    50: '#ab79ca',
    500: '#8340b2',
    950: '#000000',
  },
}
SCSS
$custom: #8340b2;
$custom-light: #ab79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8340b2",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 275.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.17774,
    "h": 308.4
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#8340B2
secondary
#A2C48A
accent
#D75188
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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