#7866F8#7866F8

#7866F8 is a mid, highly saturated blue. Relative luminance 0.203; OKLCH L 60.6% C 0.209 H 283.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7866F8
RGBrgb(120, 102, 248)
HSLhsl(247, 91%, 69%)
HSVhsv(247, 59%, 97%)
CMYKcmyk(51.6%, 58.9%, 0%, 2.7%)
CIE-LABlab(52.14, 44.56, -71.01)
CIE-LCHlch(52.14, 83.83, 302.11°)
OKLaboklab(60.59% 0.05 -0.2034)
OKLCHoklch(60.59% 0.21 283.8)
XYZxyz(29.4353, 20.2715, 91.1505)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866F8 #E6F866
analogous
#669DF8 #7866F8 #C166F8
triadic
#7866F8 #F87866 #66F878
tetradic
#7866F8 #F8669D #E6F866 #66F8C1
square
#7866F8 #F8669D #E6F866 #66F8C1
split-complementary
#7866F8 #F8C166 #9DF866
monochromatic
#240ADA #442BF5 #7866F8 #ACA1FB #DFDBFD

Accessibility & contrast

On white

4.15
#7866F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7866F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866F8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866F8#FFFFFF#000000##000000
##7866F81.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FD
Deuteranopia (green-blind)
#0078F5
Tritanopia (blue-blind)
#4488A5
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7866f8;
/* rgb */ color: rgb(120, 102, 248);
/* oklch */ color: oklch(60.6% 0.209 283.8);
Tailwind
colors: {
  custom: {
    50: '#a892fb',
    500: '#7866f8',
    950: '#000000',
  },
}
SCSS
$custom: #7866f8;
$custom-light: #a892fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7866f8",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 248
  },
  "hsl": {
    "h": 247.397,
    "s": 91.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.60592,
    "c": 0.2095,
    "h": 283.8
  },
  "luminance": 0.20273
}

Semantic roles & 50–950 ramp

primary
#7866F8
secondary
#EDF3C7
accent
#E600C9
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #7866F8

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

Preview Lab → · Contrast checker → · Palette generator →

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