#7866EE#7866EE

#7866EE is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.9% C 0.197 H 284.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7866EE
RGBrgb(120, 102, 238)
HSLhsl(248, 80%, 67%)
HSVhsv(248, 57%, 93%)
CMYKcmyk(49.6%, 57.1%, 0%, 6.7%)
CIE-LABlab(51.46, 41.62, -66.53)
CIE-LCHlch(51.46, 78.48, 302.03°)
OKLaboklab(59.87% 0.0503 -0.1903)
OKLCHoklch(59.87% 0.197 284.8)
XYZxyz(27.9251, 19.6675, 83.1971)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866EE #DCEE66
analogous
#6698EE #7866EE #BC66EE
triadic
#7866EE #EE7866 #66EE78
tetradic
#7866EE #EE6698 #DCEE66 #66EEBC
square
#7866EE #EE6698 #DCEE66 #66EEBC
split-complementary
#7866EE #EEBC66 #98EE66
monochromatic
#2D16C4 #472FE8 #7866EE #A99DF4 #D9D4FA

Accessibility & contrast

On white

4.26
#7866EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7866EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866EE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866EE#FFFFFF#000000##000000
##7866EE1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF3
Deuteranopia (green-blind)
#0076EB
Tritanopia (blue-blind)
#4C85A0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7866ee;
/* rgb */ color: rgb(120, 102, 238);
/* oklch */ color: oklch(59.9% 0.197 284.8);
Tailwind
colors: {
  custom: {
    50: '#a792f4',
    500: '#7866ee',
    950: '#000000',
  },
}
SCSS
$custom: #7866ee;
$custom-light: #a792f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7866ee",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 238
  },
  "hsl": {
    "h": 247.941,
    "s": 80,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59872,
    "c": 0.1968,
    "h": 284.8
  },
  "luminance": 0.19669
}

Semantic roles & 50–950 ramp

primary
#7866EE
secondary
#E8EEC2
accent
#DC09C0
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7866EE

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

Preview Lab → · Contrast checker → · Palette generator →

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