#8642C4#8642C4

#8642C4 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.195 H 304.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8642C4
RGBrgb(134, 66, 196)
HSLhsl(271, 52%, 51%)
HSVhsv(271, 66%, 77%)
CMYKcmyk(31.6%, 66.3%, 0%, 23.1%)
CIE-LABlab(42.69, 52.82, -56.70)
CIE-LCHlch(42.69, 77.49, 312.97°)
OKLaboklab(52.9% 0.1107 -0.1609)
OKLCHoklch(52.9% 0.195 304.5)
XYZxyz(21.7413, 12.9504, 53.5681)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8642C4 #80C442
analogous
#4542C4 #8642C4 #C442C1
triadic
#8642C4 #C48642 #42C486
tetradic
#8642C4 #C44542 #80C442 #42C1C4
square
#8642C4 #C44542 #80C442 #42C1C4
split-complementary
#8642C4 #C1C442 #42C445
monochromatic
#47216A #673099 #8642C4 #A471D3 #C29FE1

Accessibility & contrast

On white

5.85
#8642C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8642C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8642C4
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8642C4#FFFFFF#000000##FFFFFF
##8642C41.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#1765C1
Tritanopia (blue-blind)
#7B5F7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8642c4;
/* rgb */ color: rgb(134, 66, 196);
/* oklch */ color: oklch(52.9% 0.195 304.5);
Tailwind
colors: {
  custom: {
    50: '#ae7bd7',
    500: '#8642c4',
    950: '#000000',
  },
}
SCSS
$custom: #8642c4;
$custom-light: #ae7bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8642c4",
  "rgb": {
    "r": 134,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 271.385,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52904,
    "c": 0.19532,
    "h": 304.5
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#8642C4
secondary
#B0CE94
accent
#DC4C91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8642C4

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

Preview Lab → · Contrast checker → · Palette generator →

#8642C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva