#8342CA#8342CA

#8342CA is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.201 H 301.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8342CA
RGBrgb(131, 66, 202)
HSLhsl(269, 56%, 53%)
HSVhsv(269, 67%, 79%)
CMYKcmyk(35.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.74, 53.64, -60.11)
CIE-LCHlch(42.74, 80.57, 311.74°)
OKLaboklab(53% 0.106 -0.171)
OKLCHoklch(53% 0.201 301.8)
XYZxyz(21.9664, 12.9859, 57.2149)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342CA #89CA42
analogous
#4245CA #8342CA #C742CA
triadic
#8342CA #CA8342 #42CA83
tetradic
#8342CA #CA4245 #89CA42 #42CAC7
square
#8342CA #CA4245 #89CA42 #42CAC7
split-complementary
#8342CA #CAC742 #45CA42
monochromatic
#472072 #652DA2 #8342CA #A272D7 #C2A2E5

Accessibility & contrast

On white

5.84
#8342CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8342CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342CA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342CA#FFFFFF#000000##FFFFFF
##8342CA1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#746181
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8342ca;
/* rgb */ color: rgb(131, 66, 202);
/* oklch */ color: oklch(53.0% 0.201 301.8);
Tailwind
colors: {
  custom: {
    50: '#ac7bdb',
    500: '#8342ca',
    950: '#000000',
  },
}
SCSS
$custom: #8342ca;
$custom-light: #ac7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8342ca",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 268.676,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52995,
    "c": 0.20121,
    "h": 301.8
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#8342CA
secondary
#B5D196
accent
#DF4897
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342CA

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

Preview Lab → · Contrast checker → · Palette generator →

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