#7862EA#7862EA

#7862EA is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.9% C 0.197 H 286.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7862EA
RGBrgb(120, 98, 234)
HSLhsl(250, 76%, 65%)
HSVhsv(250, 58%, 92%)
CMYKcmyk(48.7%, 58.1%, 0%, 8.2%)
CIE-LABlab(50.30, 42.76, -66.17)
CIE-LCHlch(50.30, 78.79, 302.87°)
OKLaboklab(58.93% 0.0545 -0.1892)
OKLCHoklch(58.93% 0.197 286.1)
XYZxyz(26.9603, 18.6677, 80.0086)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862EA #D4EA62
analogous
#6290EA #7862EA #BC62EA
triadic
#7862EA #EA7862 #62EA78
tetradic
#7862EA #EA6290 #D4EA62 #62EABC
square
#7862EA #EA6290 #D4EA62 #62EABC
split-complementary
#7862EA #EABC62 #90EA62
monochromatic
#3319B9 #4A2CE3 #7862EA #A698F1 #D5CEF8

Accessibility & contrast

On white

4.44
#7862EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7862EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862EA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862EA#FFFFFF#000000##000000
##7862EA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#50819D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7862ea;
/* rgb */ color: rgb(120, 98, 234);
/* oklch */ color: oklch(58.9% 0.197 286.1);
Tailwind
colors: {
  custom: {
    50: '#a78ff2',
    500: '#7862ea',
    950: '#000000',
  },
}
SCSS
$custom: #7862ea;
$custom-light: #a78ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#7862ea",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 249.706,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58929,
    "c": 0.19694,
    "h": 286.1
  },
  "luminance": 0.18669
}

Semantic roles & 50–950 ramp

primary
#7862EA
secondary
#E3EBBD
accent
#D90DB8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7862EA

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

Preview Lab → · Contrast checker → · Palette generator →

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