#7864EB#7864EB

#7864EB is a mid, vivid blue. Relative luminance 0.191; OKLCH L 59.3% C 0.196 H 285.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7864EB
RGBrgb(120, 100, 235)
HSLhsl(249, 77%, 66%)
HSVhsv(249, 57%, 92%)
CMYKcmyk(48.9%, 57.4%, 0%, 7.8%)
CIE-LABlab(50.81, 41.90, -65.91)
CIE-LCHlch(50.81, 78.10, 302.45°)
OKLaboklab(59.33% 0.0524 -0.1884)
OKLCHoklch(59.33% 0.196 285.5)
XYZxyz(27.2939, 19.1043, 80.8305)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7864EB #D7EB64
analogous
#6493EB #7864EB #BB64EB
triadic
#7864EB #EB7864 #64EB78
tetradic
#7864EB #EB6493 #D7EB64 #64EBBB
square
#7864EB #EB6493 #D7EB64 #64EBBB
split-complementary
#7864EB #EBBB64 #93EB64
monochromatic
#3118BC #492EE4 #7864EB #A79AF2 #D6D0F9

Accessibility & contrast

On white

4.36
#7864EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#7864EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7864EB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7864EB#FFFFFF#000000##000000
##7864EB1.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)
#007DEF
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#4F839E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7864eb;
/* rgb */ color: rgb(120, 100, 235);
/* oklch */ color: oklch(59.3% 0.196 285.5);
Tailwind
colors: {
  custom: {
    50: '#a791f2',
    500: '#7864eb',
    950: '#000000',
  },
}
SCSS
$custom: #7864eb;
$custom-light: #a791f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7864eb",
  "rgb": {
    "r": 120,
    "g": 100,
    "b": 235
  },
  "hsl": {
    "h": 248.889,
    "s": 77.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59328,
    "c": 0.19559,
    "h": 285.5
  },
  "luminance": 0.19106
}

Semantic roles & 50–950 ramp

primary
#7864EB
secondary
#E5ECBF
accent
#D90CBB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100D17
muted
#7F7D85

Preview Lab

Preview with #7864EB

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

Preview Lab → · Contrast checker → · Palette generator →

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