#7862EC#7862EC

#7862EC is a mid, vivid blue. Relative luminance 0.188; OKLCH L 59.1% C 0.199 H 285.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7862EC
RGBrgb(120, 98, 236)
HSLhsl(250, 78%, 65%)
HSVhsv(250, 58%, 93%)
CMYKcmyk(49.2%, 58.5%, 0%, 7.5%)
CIE-LABlab(50.43, 43.34, -67.08)
CIE-LCHlch(50.43, 79.86, 302.87°)
OKLaboklab(59.07% 0.0545 -0.1919)
OKLCHoklch(59.07% 0.199 285.8)
XYZxyz(27.2493, 18.7833, 81.5303)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862EC #D6EC62
analogous
#6291EC #7862EC #BD62EC
triadic
#7862EC #EC7862 #62EC78
tetradic
#7862EC #EC6291 #D6EC62 #62ECBD
square
#7862EC #EC6291 #D6EC62 #62ECBD
split-complementary
#7862EC #ECBD62 #91EC62
monochromatic
#3117BD #492BE5 #7862EC #A799F3 #D6CFF9

Accessibility & contrast

On white

4.41
#7862EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7862EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862EC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862EC#FFFFFF#000000##000000
##7862EC1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#4E829E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7862ec;
/* rgb */ color: rgb(120, 98, 236);
/* oklch */ color: oklch(59.1% 0.199 285.8);
Tailwind
colors: {
  custom: {
    50: '#a78ff3',
    500: '#7862ec',
    950: '#000000',
  },
}
SCSS
$custom: #7862ec;
$custom-light: #a78ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#7862ec",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 249.565,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59073,
    "c": 0.19947,
    "h": 285.8
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#7862EC
secondary
#E5ECBE
accent
#DB0BBA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7862EC

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

Preview Lab → · Contrast checker → · Palette generator →

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