#8C64CD#8C64CD

#8C64CD is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.2% C 0.158 H 299.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8C64CD
RGBrgb(140, 100, 205)
HSLhsl(263, 51%, 60%)
HSVhsv(263, 51%, 80%)
CMYKcmyk(31.7%, 51.2%, 0%, 19.6%)
CIE-LABlab(50.80, 38.25, -48.83)
CIE-LCHlch(50.80, 62.03, 308.07°)
OKLaboklab(59.17% 0.0767 -0.1377)
OKLCHoklch(59.17% 0.158 299.1)
XYZxyz(26.3892, 19.0973, 60.0416)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C64CD #A5CD64
analogous
#6471CD #8C64CD #C164CD
triadic
#8C64CD #CD8C64 #64CD8C
tetradic
#8C64CD #CD6471 #A5CD64 #64CDC1
square
#8C64CD #CD6471 #A5CD64 #64CDC1
split-complementary
#8C64CD #CDC164 #71CD64
monochromatic
#502D8A #6B3BB8 #8C64CD #AE92DC #D1C1EB

Accessibility & contrast

On white

4.36
#8C64CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8C64CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C64CD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C64CD#FFFFFF#000000##000000
##8C64CD1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F79D1
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#7E788F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c64cd;
/* rgb */ color: rgb(140, 100, 205);
/* oklch */ color: oklch(59.2% 0.158 299.1);
Tailwind
colors: {
  custom: {
    50: '#b191dd',
    500: '#8c64cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c64cd;
$custom-light: #b191dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c64cd",
  "rgb": {
    "r": 140,
    "g": 100,
    "b": 205
  },
  "hsl": {
    "h": 262.857,
    "s": 51.22,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59169,
    "c": 0.15764,
    "h": 299.1
  },
  "luminance": 0.19098
}

Semantic roles & 50–950 ramp

primary
#8C64CD
secondary
#CBDBB2
accent
#DB4DA5
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8C64CD

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

Preview Lab → · Contrast checker → · Palette generator →

#8C64CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva