#8342CB#8342CB

#8342CB is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.202 H 301.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8342CB
RGBrgb(131, 66, 203)
HSLhsl(268, 57%, 53%)
HSVhsv(268, 67%, 80%)
CMYKcmyk(35.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(42.81, 53.88, -60.57)
CIE-LCHlch(42.81, 81.07, 311.65°)
OKLaboklab(53.07% 0.1059 -0.1724)
OKLCHoklch(53.07% 0.202 301.5)
XYZxyz(22.0852, 13.0334, 57.8405)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342CB #8ACB42
analogous
#4246CB #8342CB #C742CB
triadic
#8342CB #CB8342 #42CB83
tetradic
#8342CB #CB4246 #8ACB42 #42CBC7
square
#8342CB #CB4246 #8ACB42 #42CBC7
split-complementary
#8342CB #CBC742 #46CB42
monochromatic
#472073 #652DA3 #8342CB #A272D8 #C2A2E5

Accessibility & contrast

On white

5.82
#8342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8342CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342CB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342CB#FFFFFF#000000##FFFFFF
##8342CB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#746281
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8342cb;
/* rgb */ color: rgb(131, 66, 203);
/* oklch */ color: oklch(53.1% 0.202 301.5);
Tailwind
colors: {
  custom: {
    50: '#ac7bdc',
    500: '#8342cb',
    950: '#000000',
  },
}
SCSS
$custom: #8342cb;
$custom-light: #ac7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8342cb",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 268.467,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53069,
    "c": 0.2023,
    "h": 301.5
  },
  "luminance": 0.13034
}

Semantic roles & 50–950 ramp

primary
#8342CB
secondary
#B6D297
accent
#E04898
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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