#8640C4#8640C4

#8640C4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.198 H 304.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8640C4
RGBrgb(134, 64, 196)
HSLhsl(272, 53%, 51%)
HSVhsv(272, 67%, 77%)
CMYKcmyk(31.6%, 67.3%, 0%, 23.1%)
CIE-LABlab(42.34, 53.78, -57.26)
CIE-LCHlch(42.34, 78.56, 313.21°)
OKLaboklab(52.65% 0.1129 -0.1626)
OKLCHoklch(52.65% 0.198 304.8)
XYZxyz(21.6265, 12.7208, 53.5299)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8640C4 #7EC440
analogous
#4440C4 #8640C4 #C440C0
triadic
#8640C4 #C48640 #40C486
tetradic
#8640C4 #C44440 #7EC440 #40C0C4
square
#8640C4 #C44440 #7EC440 #40C0C4
split-complementary
#8640C4 #C0C440 #40C444
monochromatic
#472069 #672F98 #8640C4 #A46FD2 #C19EE1

Accessibility & contrast

On white

5.93
#8640C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8640C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8640C4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8640C4#FFFFFF#000000##FFFFFF
##8640C41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#1264C1
Tritanopia (blue-blind)
#7B5D7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8640c4;
/* rgb */ color: rgb(134, 64, 196);
/* oklch */ color: oklch(52.7% 0.198 304.8);
Tailwind
colors: {
  custom: {
    50: '#ae7ad7',
    500: '#8640c4',
    950: '#000000',
  },
}
SCSS
$custom: #8640c4;
$custom-light: #ae7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8640c4",
  "rgb": {
    "r": 134,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 271.818,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52654,
    "c": 0.19793,
    "h": 304.8
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#8640C4
secondary
#AECD93
accent
#DC4C90
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8640C4

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

Preview Lab → · Contrast checker → · Palette generator →

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