#7862F3#7862F3

#7862F3 is a mid, highly saturated blue. Relative luminance 0.192; OKLCH L 59.6% C 0.208 H 285.1°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7862F3
RGBrgb(120, 98, 243)
HSLhsl(249, 86%, 67%)
HSVhsv(249, 60%, 95%)
CMYKcmyk(50.6%, 59.7%, 0%, 4.7%)
CIE-LABlab(50.92, 45.38, -70.21)
CIE-LCHlch(50.92, 83.60, 302.88°)
OKLaboklab(59.58% 0.0542 -0.2011)
OKLCHoklch(59.58% 0.208 285.1)
XYZxyz(28.2862, 19.1980, 86.9918)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862F3 #DDF362
analogous
#6295F3 #7862F3 #C062F3
triadic
#7862F3 #F37862 #62F378
tetradic
#7862F3 #F36295 #DDF362 #62F3C0
square
#7862F3 #F36295 #DDF362 #62F3C0
split-complementary
#7862F3 #F3C062 #95F362
monochromatic
#2C10CB #4729EF #7862F3 #A99BF7 #DAD4FC

Accessibility & contrast

On white

4.34
#7862F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7862F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862F3
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862F3#FFFFFF#000000##000000
##7862F31.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF8
Deuteranopia (green-blind)
#0075F0
Tritanopia (blue-blind)
#4984A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7862f3;
/* rgb */ color: rgb(120, 98, 243);
/* oklch */ color: oklch(59.6% 0.208 285.1);
Tailwind
colors: {
  custom: {
    50: '#a88ff8',
    500: '#7862f3',
    950: '#000000',
  },
}
SCSS
$custom: #7862f3;
$custom-light: #a88ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#7862f3",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 243
  },
  "hsl": {
    "h": 249.103,
    "s": 85.799,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59583,
    "c": 0.20828,
    "h": 285.1
  },
  "luminance": 0.19199
}

Semantic roles & 50–950 ramp

primary
#7862F3
secondary
#E9F0C1
accent
#E203C0
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7862F3

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

Preview Lab → · Contrast checker → · Palette generator →

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