#8340A8#8340A8

#8340A8 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.167 H 311.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8340A8
RGBrgb(131, 64, 168)
HSLhsl(279, 45%, 45%)
HSVhsv(279, 62%, 66%)
CMYKcmyk(22%, 61.9%, 0%, 34.1%)
CIE-LABlab(40.11, 46.64, -44.39)
CIE-LCHlch(40.11, 64.38, 316.42°)
OKLaboklab(50.38% 0.1108 -0.1249)
OKLCHoklch(50.38% 0.167 311.6)
XYZxyz(18.2601, 11.3197, 38.2612)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340A8 #65A840
analogous
#4F40A8 #8340A8 #A84099
triadic
#8340A8 #A88340 #40A883
tetradic
#8340A8 #A84F40 #65A840 #4099A8
square
#8340A8 #A84F40 #65A840 #4099A8
split-complementary
#8340A8 #99A840 #40A84F
monochromatic
#3E1E4F #602F7C #8340A8 #A162C3 #BB8ED4

Accessibility & contrast

On white

6.43
#8340A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8340A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340A8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340A8#FFFFFF#000000##FFFFFF
##8340A81.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#3760A6
Tritanopia (blue-blind)
#7F546E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8340a8;
/* rgb */ color: rgb(131, 64, 168);
/* oklch */ color: oklch(50.4% 0.167 311.6);
Tailwind
colors: {
  custom: {
    50: '#aa79c2',
    500: '#8340a8',
    950: '#000000',
  },
}
SCSS
$custom: #8340a8;
$custom-light: #aa79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8340a8",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 278.654,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50378,
    "c": 0.1669,
    "h": 311.6
  },
  "luminance": 0.11319
}

Semantic roles & 50–950 ramp

primary
#8340A8
secondary
#99BF85
accent
#D55381
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8340A8

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

Preview Lab → · Contrast checker → · Palette generator →

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