#8340D6#8340D6

#8340D6 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.7% C 0.217 H 299.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8340D6
RGBrgb(131, 64, 214)
HSLhsl(267, 65%, 55%)
HSVhsv(267, 70%, 84%)
CMYKcmyk(38.8%, 70.1%, 0%, 16.1%)
CIE-LABlab(43.28, 57.53, -66.15)
CIE-LCHlch(43.28, 87.67, 311.01°)
OKLaboklab(53.66% 0.1062 -0.1888)
OKLCHoklch(53.66% 0.217 299.4)
XYZxyz(23.3280, 13.3469, 64.9525)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340D6 #93D640
analogous
#4048D6 #8340D6 #CE40D6
triadic
#8340D6 #D68340 #40D683
tetradic
#8340D6 #D64048 #93D640 #40D6CE
square
#8340D6 #D64048 #93D640 #40D6CE
split-complementary
#8340D6 #D6CE40 #48D640
monochromatic
#481B80 #6526B2 #8340D6 #A472E1 #C4A5EC

Accessibility & contrast

On white

5.72
#8340D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8340D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340D6
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340D6#FFFFFF#000000##FFFFFF
##8340D61.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0065D3
Tritanopia (blue-blind)
#706587
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8340d6;
/* rgb */ color: rgb(131, 64, 214);
/* oklch */ color: oklch(53.7% 0.217 299.4);
Tailwind
colors: {
  custom: {
    50: '#ad7ae4',
    500: '#8340d6',
    950: '#000000',
  },
}
SCSS
$custom: #8340d6;
$custom-light: #ad7ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#8340d6",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 266.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53657,
    "c": 0.21661,
    "h": 299.4
  },
  "luminance": 0.13347
}

Semantic roles & 50–950 ramp

primary
#8340D6
secondary
#BCD999
accent
#E8409D
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8340D6

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

Preview Lab → · Contrast checker → · Palette generator →

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