#7862F8#7862F8

#7862F8 is a mid, highly saturated blue. Relative luminance 0.195; OKLCH L 60.0% C 0.215 H 284.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7862F8
RGBrgb(120, 98, 248)
HSLhsl(249, 91%, 68%)
HSVhsv(249, 60%, 97%)
CMYKcmyk(51.6%, 60.5%, 0%, 2.7%)
CIE-LABlab(51.27, 46.84, -72.42)
CIE-LCHlch(51.27, 86.25, 302.90°)
OKLaboklab(59.95% 0.054 -0.2076)
OKLCHoklch(59.95% 0.215 284.6)
XYZxyz(29.0516, 19.5042, 91.0226)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862F8 #E2F862
analogous
#6297F8 #7862F8 #C362F8
triadic
#7862F8 #F87862 #62F878
tetradic
#7862F8 #F86297 #E2F862 #62F8C3
square
#7862F8 #F86297 #E2F862 #62F8C3
split-complementary
#7862F8 #F8C362 #97F862
monochromatic
#280AD6 #4627F5 #7862F8 #AA9DFB #DDD7FD

Accessibility & contrast

On white

4.28
#7862F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7862F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862F8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862F8#FFFFFF#000000##000000
##7862F81.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFD
Deuteranopia (green-blind)
#0075F5
Tritanopia (blue-blind)
#4486A4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7862f8;
/* rgb */ color: rgb(120, 98, 248);
/* oklch */ color: oklch(60.0% 0.215 284.6);
Tailwind
colors: {
  custom: {
    50: '#a990fc',
    500: '#7862f8',
    950: '#000000',
  },
}
SCSS
$custom: #7862f8;
$custom-light: #a990fc;
$custom-dark: #000000;
JSON
{
  "hex": "#7862f8",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 248
  },
  "hsl": {
    "h": 248.8,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.59953,
    "c": 0.21451,
    "h": 284.6
  },
  "luminance": 0.19506
}

Semantic roles & 50–950 ramp

primary
#7862F8
secondary
#EBF2C4
accent
#E600C4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7862F8

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

Preview Lab → · Contrast checker → · Palette generator →

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