#8642C7#8642C7

#8642C7 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.199 H 303.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8642C7
RGBrgb(134, 66, 199)
HSLhsl(271, 54%, 52%)
HSVhsv(271, 67%, 78%)
CMYKcmyk(32.7%, 66.8%, 0%, 22%)
CIE-LABlab(42.90, 53.53, -58.11)
CIE-LCHlch(42.90, 79.01, 312.65°)
OKLaboklab(53.12% 0.1104 -0.165)
OKLCHoklch(53.12% 0.199 303.8)
XYZxyz(22.0862, 13.0883, 55.3845)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8642C7 #83C742
analogous
#4442C7 #8642C7 #C742C5
triadic
#8642C7 #C78642 #42C786
tetradic
#8642C7 #C74442 #83C742 #42C5C7
square
#8642C7 #C74442 #83C742 #42C5C7
split-complementary
#8642C7 #C5C742 #42C744
monochromatic
#48216E #672F9D #8642C7 #A471D5 #C2A0E3

Accessibility & contrast

On white

5.80
#8642C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8642C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8642C7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8642C7#FFFFFF#000000##FFFFFF
##8642C71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0E65C4
Tritanopia (blue-blind)
#7A607F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8642c7;
/* rgb */ color: rgb(134, 66, 199);
/* oklch */ color: oklch(53.1% 0.199 303.8);
Tailwind
colors: {
  custom: {
    50: '#ae7bd9',
    500: '#8642c7',
    950: '#000000',
  },
}
SCSS
$custom: #8642c7;
$custom-light: #ae7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8642c7",
  "rgb": {
    "r": 134,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 270.677,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53119,
    "c": 0.19857,
    "h": 303.8
  },
  "luminance": 0.13088
}

Semantic roles & 50–950 ramp

primary
#8642C7
secondary
#B2D095
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8642C7

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

Preview Lab → · Contrast checker → · Palette generator →

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