#7862EF#7862EF

#7862EF is a mid, highly saturated blue. Relative luminance 0.190; OKLCH L 59.3% C 0.203 H 285.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7862EF
RGBrgb(120, 98, 239)
HSLhsl(249, 82%, 66%)
HSVhsv(249, 59%, 94%)
CMYKcmyk(49.8%, 59%, 0%, 6.3%)
CIE-LABlab(50.64, 44.22, -68.42)
CIE-LCHlch(50.64, 81.47, 302.87°)
OKLaboklab(59.29% 0.0544 -0.1958)
OKLCHoklch(59.29% 0.203 285.5)
XYZxyz(27.6888, 18.9591, 83.8451)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862EF #D9EF62
analogous
#6292EF #7862EF #BE62EF
triadic
#7862EF #EF7862 #62EF78
tetradic
#7862EF #EF6292 #D9EF62 #62EFBE
square
#7862EF #EF6292 #D9EF62 #62EFBE
split-complementary
#7862EF #EFBE62 #92EF62
monochromatic
#2F14C3 #482AE9 #7862EF #A89AF5 #D8D1FA

Accessibility & contrast

On white

4.38
#7862EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7862EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862EF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862EF#FFFFFF#000000##000000
##7862EF1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#4C839F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7862ef;
/* rgb */ color: rgb(120, 98, 239);
/* oklch */ color: oklch(59.3% 0.203 285.5);
Tailwind
colors: {
  custom: {
    50: '#a78ff5',
    500: '#7862ef',
    950: '#000000',
  },
}
SCSS
$custom: #7862ef;
$custom-light: #a78ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#7862ef",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 239
  },
  "hsl": {
    "h": 249.362,
    "s": 81.503,
    "l": 66.078
  },
  "oklch": {
    "l": 0.5929,
    "c": 0.20326,
    "h": 285.5
  },
  "luminance": 0.1896
}

Semantic roles & 50–950 ramp

primary
#7862EF
secondary
#E6EEBF
accent
#DE08BC
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7862EF

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

Preview Lab → · Contrast checker → · Palette generator →

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