#7864EC#7864EC

#7864EC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 59.4% C 0.197 H 285.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7864EC
RGBrgb(120, 100, 236)
HSLhsl(249, 78%, 66%)
HSVhsv(249, 58%, 93%)
CMYKcmyk(49.2%, 57.6%, 0%, 7.5%)
CIE-LABlab(50.88, 42.19, -66.36)
CIE-LCHlch(50.88, 78.64, 302.45°)
OKLaboklab(59.4% 0.0524 -0.1898)
OKLCHoklch(59.4% 0.197 285.4)
XYZxyz(27.4387, 19.1622, 81.5935)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864EC #D8EC64
analogous
#6494EC #7864EC #BC64EC
triadic
#7864EC #EC7864 #64EC78
tetradic
#7864EC #EC6494 #D8EC64 #64ECBC
square
#7864EC #EC6494 #D8EC64 #64ECBC
split-complementary
#7864EC #ECBC64 #94EC64
monochromatic
#3017BE #492DE5 #7864EC #A79BF3 #D7D1F9

Accessibility & contrast

On white

4.35
#7864EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7864EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864EC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864EC#FFFFFF#000000##000000
##7864EC1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#4E839E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7864ec;
/* rgb */ color: rgb(120, 100, 236);
/* oklch */ color: oklch(59.4% 0.197 285.4);
Tailwind
colors: {
  custom: {
    50: '#a791f3',
    500: '#7864ec',
    950: '#000000',
  },
}
SCSS
$custom: #7864ec;
$custom-light: #a791f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7864ec",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 236
  },
  "hsl": {
    "h": 248.824,
    "s": 78.161,
    "l": 65.882
  },
  "oklch": {
    "l": 0.594,
    "c": 0.19687,
    "h": 285.4
  },
  "luminance": 0.19164
}

Semantic roles & 50–950 ramp

primary
#7864EC
secondary
#E6ECBF
accent
#DA0BBC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100D17
muted
#7F7D85

Preview Lab

Preview with #7864EC

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

Preview Lab → · Contrast checker → · Palette generator →

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