#7866FA#7866FA

#7866FA is a mid, highly saturated blue. Relative luminance 0.204; OKLCH L 60.7% C 0.212 H 283.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7866FA
RGBrgb(120, 102, 250)
HSLhsl(247, 94%, 69%)
HSVhsv(247, 59%, 98%)
CMYKcmyk(52%, 59.2%, 0%, 2%)
CIE-LABlab(52.28, 45.15, -71.89)
CIE-LCHlch(52.28, 84.89, 302.13°)
OKLaboklab(60.74% 0.05 -0.206)
OKLCHoklch(60.74% 0.212 283.6)
XYZxyz(29.7472, 20.3963, 92.7934)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866FA #E8FA66
analogous
#669EFA #7866FA #C266FA
triadic
#7866FA #FA7866 #66FA78
tetradic
#7866FA #FA669E #E8FA66 #66FAC2
square
#7866FA #FA669E #E8FA66 #66FAC2
split-complementary
#7866FA #FAC266 #9EFA66
monochromatic
#2107DE #442BF8 #7866FA #ACA1FC #E1DDFE

Accessibility & contrast

On white

4.13
#7866FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7866FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866FA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866FA#FFFFFF#000000##000000
##7866FA1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#0078F7
Tritanopia (blue-blind)
#4289A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7866fa;
/* rgb */ color: rgb(120, 102, 250);
/* oklch */ color: oklch(60.7% 0.212 283.6);
Tailwind
colors: {
  custom: {
    50: '#a992fd',
    500: '#7866fa',
    950: '#000000',
  },
}
SCSS
$custom: #7866fa;
$custom-light: #a992fd;
$custom-dark: #000000;
JSON
{
  "hex": "#7866fa",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 250
  },
  "hsl": {
    "h": 247.297,
    "s": 93.671,
    "l": 69.02
  },
  "oklch": {
    "l": 0.60738,
    "c": 0.21201,
    "h": 283.6
  },
  "luminance": 0.20398
}

Semantic roles & 50–950 ramp

primary
#7866FA
secondary
#EEF4C8
accent
#E600CA
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #7866FA

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

Preview Lab → · Contrast checker → · Palette generator →

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