#8340D3#8340D3

#8340D3 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.213 H 300.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8340D3
RGBrgb(131, 64, 211)
HSLhsl(267, 63%, 54%)
HSVhsv(267, 70%, 83%)
CMYKcmyk(37.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.06, 56.79, -64.80)
CIE-LCHlch(43.06, 86.16, 311.24°)
OKLaboklab(53.43% 0.1067 -0.1848)
OKLCHoklch(53.43% 0.213 300)
XYZxyz(22.9484, 13.1950, 62.9532)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340D3 #90D340
analogous
#4047D3 #8340D3 #CD40D3
triadic
#8340D3 #D38340 #40D383
tetradic
#8340D3 #D34047 #90D340 #40D3CD
square
#8340D3 #D34047 #90D340 #40D3CD
split-complementary
#8340D3 #D3CD40 #47D340
monochromatic
#481D7C #6528AE #8340D3 #A372DE #C4A3EA

Accessibility & contrast

On white

5.77
#8340D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8340D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340D3
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340D3#FFFFFF#000000##FFFFFF
##8340D31.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#716385
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8340d3;
/* rgb */ color: rgb(131, 64, 211);
/* oklch */ color: oklch(53.4% 0.213 300.0);
Tailwind
colors: {
  custom: {
    50: '#ad7ae1',
    500: '#8340d3',
    950: '#000000',
  },
}
SCSS
$custom: #8340d3;
$custom-light: #ad7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8340d3",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 267.347,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.2134,
    "h": 300
  },
  "luminance": 0.13195
}

Semantic roles & 50–950 ramp

primary
#8340D3
secondary
#BAD798
accent
#E6429B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8340D3

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

Preview Lab → · Contrast checker → · Palette generator →

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