#7866EA#7866EA

#7866EA is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.6% C 0.192 H 285.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7866EA
RGBrgb(120, 102, 234)
HSLhsl(248, 76%, 66%)
HSVhsv(248, 56%, 92%)
CMYKcmyk(48.7%, 56.4%, 0%, 8.2%)
CIE-LABlab(51.19, 40.45, -64.72)
CIE-LCHlch(51.19, 76.33, 302.00°)
OKLaboklab(59.59% 0.0503 -0.185)
OKLCHoklch(59.59% 0.192 285.2)
XYZxyz(27.3440, 19.4350, 80.1365)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866EA #D8EA66
analogous
#6696EA #7866EA #BA66EA
triadic
#7866EA #EA7866 #66EA78
tetradic
#7866EA #EA6696 #D8EA66 #66EABA
square
#7866EA #EA6696 #D8EA66 #66EABA
split-complementary
#7866EA #EABA66 #96EA66
monochromatic
#301ABC #4930E3 #7866EA #A79CF1 #D7D2F9

Accessibility & contrast

On white

4.30
#7866EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7866EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866EA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866EA#FFFFFF#000000##000000
##7866EA1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEE
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#4F849E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7866ea;
/* rgb */ color: rgb(120, 102, 234);
/* oklch */ color: oklch(59.6% 0.192 285.2);
Tailwind
colors: {
  custom: {
    50: '#a792f1',
    500: '#7866ea',
    950: '#000000',
  },
}
SCSS
$custom: #7866ea;
$custom-light: #a792f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7866ea",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 248.182,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5959,
    "c": 0.19167,
    "h": 285.2
  },
  "luminance": 0.19436
}

Semantic roles & 50–950 ramp

primary
#7866EA
secondary
#E6ECC0
accent
#D80DBC
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7866EA

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

Preview Lab → · Contrast checker → · Palette generator →

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