#8342BB#8342BB

#8342BB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.185 H 305.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8342BB
RGBrgb(131, 66, 187)
HSLhsl(272, 48%, 50%)
HSVhsv(272, 65%, 73%)
CMYKcmyk(29.9%, 64.7%, 0%, 26.7%)
CIE-LABlab(41.70, 50.03, -53.05)
CIE-LCHlch(41.70, 72.92, 313.32°)
OKLaboklab(51.92% 0.1075 -0.1503)
OKLCHoklch(51.92% 0.185 305.6)
XYZxyz(20.2760, 12.3097, 48.3119)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342BB #7ABB42
analogous
#4642BB #8342BB #BB42B7
triadic
#8342BB #BB8342 #42BB83
tetradic
#8342BB #BB4642 #7ABB42 #42B7BB
square
#8342BB #BB4642 #7ABB42 #42B7BB
split-complementary
#8342BB #B7BB42 #42BB46
monochromatic
#442261 #63328E #8342BB #A16ECC #BE9CDC

Accessibility & contrast

On white

6.07
#8342BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8342BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342BB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342BB#FFFFFF#000000##FFFFFF
##8342BB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2363B8
Tritanopia (blue-blind)
#795C79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8342bb;
/* rgb */ color: rgb(131, 66, 187);
/* oklch */ color: oklch(51.9% 0.185 305.6);
Tailwind
colors: {
  custom: {
    50: '#ab7ad0',
    500: '#8342bb',
    950: '#000000',
  },
}
SCSS
$custom: #8342bb;
$custom-light: #ab7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8342bb",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 272.231,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5192,
    "c": 0.18478,
    "h": 305.6
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#8342BB
secondary
#AAC891
accent
#D7508F
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8342BB

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

Preview Lab → · Contrast checker → · Palette generator →

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