#7861EB#7861EB

#7861EB is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.8% C 0.200 H 286.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7861EB
RGBrgb(120, 97, 235)
HSLhsl(250, 78%, 65%)
HSVhsv(250, 59%, 92%)
CMYKcmyk(48.9%, 58.7%, 0%, 7.8%)
CIE-LABlab(50.14, 43.63, -66.98)
CIE-LCHlch(50.14, 79.94, 303.08°)
OKLaboklab(58.84% 0.0556 -0.1916)
OKLCHoklch(58.84% 0.2 286.2)
XYZxyz(27.0114, 18.5393, 80.7363)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7861EB #D4EB61
analogous
#618FEB #7861EB #BD61EB
triadic
#7861EB #EB7861 #61EB78
tetradic
#7861EB #EB618F #D4EB61 #61EBBD
square
#7861EB #EB618F #D4EB61 #61EBBD
split-complementary
#7861EB #EBBD61 #8FEB61
monochromatic
#3318BA #4A2BE4 #7861EB #A697F2 #D5CEF9

Accessibility & contrast

On white

4.46
#7861EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7861EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7861EB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7861EB#FFFFFF#000000##000000
##7861EB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#4F819D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7861eb;
/* rgb */ color: rgb(120, 97, 235);
/* oklch */ color: oklch(58.8% 0.200 286.2);
Tailwind
colors: {
  custom: {
    50: '#a78ff2',
    500: '#7861eb',
    950: '#000000',
  },
}
SCSS
$custom: #7861eb;
$custom-light: #a78ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#7861eb",
  "rgb": {
    "r": 120,
    "g": 97,
    "b": 235
  },
  "hsl": {
    "h": 250,
    "s": 77.528,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58839,
    "c": 0.19951,
    "h": 286.2
  },
  "luminance": 0.18541
}

Semantic roles & 50–950 ramp

primary
#7861EB
secondary
#E3EBBD
accent
#DA0CB7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7861EB

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

Preview Lab → · Contrast checker → · Palette generator →

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