#7862FD#7862FD

#7862FD is a mid, highly saturated blue. Relative luminance 0.198; OKLCH L 60.3% C 0.221 H 284.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7862FD
RGBrgb(120, 98, 253)
HSLhsl(249, 97%, 69%)
HSVhsv(249, 61%, 99%)
CMYKcmyk(52.6%, 61.3%, 0%, 0.8%)
CIE-LABlab(51.63, 48.30, -74.61)
CIE-LCHlch(51.63, 88.88, 302.92°)
OKLaboklab(60.33% 0.0537 -0.2141)
OKLCHoklch(60.33% 0.221 284.1)
XYZxyz(29.8377, 19.8186, 95.1626)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862FD #E7FD62
analogous
#629AFD #7862FD #C662FD
triadic
#7862FD #FD7862 #62FD78
tetradic
#7862FD #FD629A #E7FD62 #62FDC6
square
#7862FD #FD629A #E7FD62 #62FDC6
split-complementary
#7862FD #FDC662 #9AFD62
monochromatic
#2303E2 #4426FC #7862FD #AC9EFE #E0DBFF

Accessibility & contrast

On white

4.23
#7862FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7862FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862FD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862FD#FFFFFF#000000##000000
##7862FD1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#0076FA
Tritanopia (blue-blind)
#4087A6
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7862fd;
/* rgb */ color: rgb(120, 98, 253);
/* oklch */ color: oklch(60.3% 0.221 284.1);
Tailwind
colors: {
  custom: {
    50: '#a990ff',
    500: '#7862fd',
    950: '#000000',
  },
}
SCSS
$custom: #7862fd;
$custom-light: #a990ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7862fd",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 253
  },
  "hsl": {
    "h": 248.516,
    "s": 97.484,
    "l": 68.824
  },
  "oklch": {
    "l": 0.60329,
    "c": 0.22068,
    "h": 284.1
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#7862FD
secondary
#EEF4C6
accent
#E600C5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7862FD

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

Preview Lab → · Contrast checker → · Palette generator →

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