#8342AF#8342AF

#8342AF is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.172 H 309.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8342AF
RGBrgb(131, 66, 175)
HSLhsl(276, 45%, 47%)
HSVhsv(276, 62%, 69%)
CMYKcmyk(25.1%, 62.3%, 0%, 31.4%)
CIE-LABlab(40.92, 47.22, -47.24)
CIE-LCHlch(40.92, 66.80, 314.99°)
OKLaboklab(51.11% 0.1081 -0.1332)
OKLCHoklch(51.11% 0.172 309.1)
XYZxyz(19.0446, 11.8172, 41.8268)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342AF #6EAF42
analogous
#4D42AF #8342AF #AF42A4
triadic
#8342AF #AF8342 #42AF83
tetradic
#8342AF #AF4D42 #6EAF42 #42A4AF
square
#8342AF #AF4D42 #6EAF42 #42A4AF
split-complementary
#8342AF #A4AF42 #42AF4D
monochromatic
#402056 #623183 #8342AF #A068C6 #BC95D7

Accessibility & contrast

On white

6.24
#8342AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8342AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342AF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342AF#FFFFFF#000000##FFFFFF
##8342AF1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB2
Deuteranopia (green-blind)
#3361AC
Tritanopia (blue-blind)
#7D5772
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8342af;
/* rgb */ color: rgb(131, 66, 175);
/* oklch */ color: oklch(51.1% 0.172 309.1);
Tailwind
colors: {
  custom: {
    50: '#aa7ac7',
    500: '#8342af',
    950: '#000000',
  },
}
SCSS
$custom: #8342af;
$custom-light: #aa7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8342af",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 275.78,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.17158,
    "h": 309.1
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

primary
#8342AF
secondary
#A1C28A
accent
#D55387
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342AF

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

Preview Lab → · Contrast checker → · Palette generator →

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