#7864CD#7864CD

#7864CD is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.3% C 0.156 H 289.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7864CD
RGBrgb(120, 100, 205)
HSLhsl(251, 51%, 60%)
HSVhsv(251, 51%, 80%)
CMYKcmyk(41.5%, 51.2%, 0%, 19.6%)
CIE-LABlab(48.90, 33.26, -51.98)
CIE-LCHlch(48.90, 61.71, 302.62°)
OKLaboklab(57.3% 0.0516 -0.1475)
OKLCHoklch(57.3% 0.156 289.3)
XYZxyz(23.3193, 17.5144, 59.8977)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864CD #B9CD64
analogous
#6484CD #7864CD #AD64CD
triadic
#7864CD #CD7864 #64CD78
tetradic
#7864CD #CD6484 #B9CD64 #64CDAD
square
#7864CD #CD6484 #B9CD64 #64CDAD
split-complementary
#7864CD #CDAD64 #84CD64
monochromatic
#3E2D8A #533BB8 #7864CD #A092DC #C9C1EB

Accessibility & contrast

On white

4.66
#7864CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7864CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7864CD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864CD#FFFFFF#000000##FFFFFF
##7864CD1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3776D1
Deuteranopia (green-blind)
#3872CB
Tritanopia (blue-blind)
#607A8F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7864cd;
/* rgb */ color: rgb(120, 100, 205);
/* oklch */ color: oklch(57.3% 0.156 289.3);
Tailwind
colors: {
  custom: {
    50: '#a390dd',
    500: '#7864cd',
    950: '#000000',
  },
}
SCSS
$custom: #7864cd;
$custom-light: #a390dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7864cd",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 205
  },
  "hsl": {
    "h": 251.429,
    "s": 51.22,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.15625,
    "h": 289.3
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#7864CD
secondary
#D3DBB2
accent
#DB4DC0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7864CD

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

Preview Lab → · Contrast checker → · Palette generator →

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