#8342CC#8342CC

#8342CC is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.1% C 0.203 H 301.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8342CC
RGBrgb(131, 66, 204)
HSLhsl(268, 58%, 53%)
HSVhsv(268, 68%, 80%)
CMYKcmyk(35.8%, 67.6%, 0%, 20%)
CIE-LABlab(42.89, 54.13, -61.04)
CIE-LCHlch(42.89, 81.58, 311.57°)
OKLaboklab(53.14% 0.1057 -0.1738)
OKLCHoklch(53.14% 0.203 301.3)
XYZxyz(22.2047, 13.0812, 58.4701)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342CC #8BCC42
analogous
#4246CC #8342CC #C842CC
triadic
#8342CC #CC8342 #42CC83
tetradic
#8342CC #CC4246 #8BCC42 #42CCC8
square
#8342CC #CC4246 #8BCC42 #42CCC8
split-complementary
#8342CC #CCC842 #46CC42
monochromatic
#471F74 #652CA4 #8342CC #A372D9 #C2A2E6

Accessibility & contrast

On white

5.81
#8342CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8342CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342CC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342CC#FFFFFF#000000##FFFFFF
##8342CC1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#736282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8342cc;
/* rgb */ color: rgb(131, 66, 204);
/* oklch */ color: oklch(53.1% 0.203 301.3);
Tailwind
colors: {
  custom: {
    50: '#ac7bdc',
    500: '#8342cc',
    950: '#000000',
  },
}
SCSS
$custom: #8342cc;
$custom-light: #ac7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8342cc",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 268.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53143,
    "c": 0.20339,
    "h": 301.3
  },
  "luminance": 0.13081
}

Semantic roles & 50–950 ramp

primary
#8342CC
secondary
#B7D397
accent
#E14798
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342CC

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

Preview Lab → · Contrast checker → · Palette generator →

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