#8340AF#8340AF

#8340AF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.174 H 309.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8340AF
RGBrgb(131, 64, 175)
HSLhsl(276, 46%, 47%)
HSVhsv(276, 63%, 69%)
CMYKcmyk(25.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(40.55, 48.23, -47.84)
CIE-LCHlch(40.55, 67.93, 315.23°)
OKLaboklab(50.84% 0.1106 -0.135)
OKLCHoklch(50.84% 0.174 309.3)
XYZxyz(18.9298, 11.5876, 41.7885)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340AF #6CAF40
analogous
#4B40AF #8340AF #AF40A4
triadic
#8340AF #AF8340 #40AF83
tetradic
#8340AF #AF4B40 #6CAF40 #40A4AF
square
#8340AF #AF4B40 #6CAF40 #40A4AF
split-complementary
#8340AF #A4AF40 #40AF4B
monochromatic
#401F55 #613082 #8340AF #A065C7 #BC92D7

Accessibility & contrast

On white

6.33
#8340AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8340AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340AF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340AF#FFFFFF#000000##FFFFFF
##8340AF1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025DB2
Deuteranopia (green-blind)
#3061AC
Tritanopia (blue-blind)
#7D5672
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8340af;
/* rgb */ color: rgb(131, 64, 175);
/* oklch */ color: oklch(50.8% 0.174 309.3);
Tailwind
colors: {
  custom: {
    50: '#aa79c7',
    500: '#8340af',
    950: '#000000',
  },
}
SCSS
$custom: #8340af;
$custom-light: #aa79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8340af",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 276.216,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50837,
    "c": 0.17449,
    "h": 309.3
  },
  "luminance": 0.11587
}

Semantic roles & 50–950 ramp

primary
#8340AF
secondary
#9FC388
accent
#D65286
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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