#7866E8#7866E8

#7866E8 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.5% C 0.189 H 285.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7866E8
RGBrgb(120, 102, 232)
HSLhsl(248, 74%, 65%)
HSVhsv(248, 56%, 91%)
CMYKcmyk(48.3%, 56%, 0%, 9%)
CIE-LABlab(51.06, 39.87, -63.81)
CIE-LCHlch(51.06, 75.24, 301.99°)
OKLaboklab(59.45% 0.0503 -0.1823)
OKLCHoklch(59.45% 0.189 285.4)
XYZxyz(27.0583, 19.3207, 78.6318)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866E8 #D6E866
analogous
#6695E8 #7866E8 #B966E8
triadic
#7866E8 #E87866 #66E878
tetradic
#7866E8 #E86695 #D6E866 #66E8B9
square
#7866E8 #E86695 #D6E866 #66E8B9
split-complementary
#7866E8 #E8B966 #95E866
monochromatic
#311CB8 #4931E0 #7866E8 #A79BF0 #D6D0F8

Accessibility & contrast

On white

4.32
#7866E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7866E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866E8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866E8#FFFFFF#000000##000000
##7866E81.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A7DEC
Deuteranopia (green-blind)
#0076E5
Tritanopia (blue-blind)
#51839D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7866e8;
/* rgb */ color: rgb(120, 102, 232);
/* oklch */ color: oklch(59.5% 0.189 285.4);
Tailwind
colors: {
  custom: {
    50: '#a692f0',
    500: '#7866e8',
    950: '#000000',
  },
}
SCSS
$custom: #7866e8;
$custom-light: #a692f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7866e8",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 248.308,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.18908,
    "h": 285.4
  },
  "luminance": 0.19322
}

Semantic roles & 50–950 ramp

primary
#7866E8
secondary
#E5EBBF
accent
#D610BB
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7866E8

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

Preview Lab → · Contrast checker → · Palette generator →

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