#7866EC#7866EC

#7866EC is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.7% C 0.194 H 285.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7866EC
RGBrgb(120, 102, 236)
HSLhsl(248, 78%, 66%)
HSVhsv(248, 57%, 93%)
CMYKcmyk(49.2%, 56.8%, 0%, 7.5%)
CIE-LABlab(51.33, 41.04, -65.63)
CIE-LCHlch(51.33, 77.40, 302.02°)
OKLaboklab(59.73% 0.0503 -0.1876)
OKLCHoklch(59.73% 0.194 285)
XYZxyz(27.6329, 19.5506, 81.6582)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866EC #DAEC66
analogous
#6697EC #7866EC #BB66EC
triadic
#7866EC #EC7866 #66EC78
tetradic
#7866EC #EC6697 #DAEC66 #66ECBB
square
#7866EC #EC6697 #DAEC66 #66ECBB
split-complementary
#7866EC #ECBB66 #97EC66
monochromatic
#2E18C0 #4830E5 #7866EC #A89CF3 #D8D3FA

Accessibility & contrast

On white

4.28
#7866EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7866EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866EC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866EC#FFFFFF#000000##000000
##7866EC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#4E859F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7866ec;
/* rgb */ color: rgb(120, 102, 236);
/* oklch */ color: oklch(59.7% 0.194 285.0);
Tailwind
colors: {
  custom: {
    50: '#a792f3',
    500: '#7866ec',
    950: '#000000',
  },
}
SCSS
$custom: #7866ec;
$custom-light: #a792f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7866ec",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 248.06,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59731,
    "c": 0.19425,
    "h": 285
  },
  "luminance": 0.19552
}

Semantic roles & 50–950 ramp

primary
#7866EC
secondary
#E7EDC1
accent
#DA0BBE
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7866EC

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

Preview Lab → · Contrast checker → · Palette generator →

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