#7864DC#7864DC

#7864DC is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.3% C 0.176 H 287.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7864DC
RGBrgb(120, 100, 220)
HSLhsl(250, 63%, 63%)
HSVhsv(250, 55%, 86%)
CMYKcmyk(45.5%, 54.5%, 0%, 13.7%)
CIE-LABlab(49.83, 37.55, -59.03)
CIE-LCHlch(49.83, 69.96, 302.46°)
OKLaboklab(58.29% 0.0523 -0.1682)
OKLCHoklch(58.29% 0.176 287.3)
XYZxyz(25.2174, 18.2737, 69.8947)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864DC #C8DC64
analogous
#648CDC #7864DC #B464DC
triadic
#7864DC #DC7864 #64DC78
tetradic
#7864DC #DC648C #C8DC64 #64DCB4
square
#7864DC #DC648C #C8DC64 #64DCB4
split-complementary
#7864DC #DCB464 #8CDC64
monochromatic
#3924A1 #4D32D1 #7864DC #A396E7 #CFC8F3

Accessibility & contrast

On white

4.51
#7864DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7864DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864DC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864DC#FFFFFF#000000##000000
##7864DC1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279E0
Deuteranopia (green-blind)
#2173D9
Tritanopia (blue-blind)
#587E96
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7864dc;
/* rgb */ color: rgb(120, 100, 220);
/* oklch */ color: oklch(58.3% 0.176 287.3);
Tailwind
colors: {
  custom: {
    50: '#a590e8',
    500: '#7864dc',
    950: '#000000',
  },
}
SCSS
$custom: #7864dc;
$custom-light: #a590e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7864dc",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 220
  },
  "hsl": {
    "h": 250,
    "s": 63.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58289,
    "c": 0.17618,
    "h": 287.3
  },
  "luminance": 0.18275
}

Semantic roles & 50–950 ramp

primary
#7864DC
secondary
#DCE4B8
accent
#CB1BAE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7864DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7864DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva