#7866F5#7866F5

#7866F5 is a mid, highly saturated blue. Relative luminance 0.201; OKLCH L 60.4% C 0.206 H 284.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7866F5
RGBrgb(120, 102, 245)
HSLhsl(248, 88%, 68%)
HSVhsv(248, 58%, 96%)
CMYKcmyk(51%, 58.4%, 0%, 3.9%)
CIE-LABlab(51.94, 43.68, -69.67)
CIE-LCHlch(51.94, 82.23, 302.09°)
OKLaboklab(60.37% 0.0501 -0.1995)
OKLCHoklch(60.37% 0.206 284.1)
XYZxyz(28.9736, 20.0868, 88.7190)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866F5 #E3F566
analogous
#669CF5 #7866F5 #BF66F5
triadic
#7866F5 #F57866 #66F578
tetradic
#7866F5 #F5669C #E3F566 #66F5BF
square
#7866F5 #F5669C #E3F566 #66F5BF
split-complementary
#7866F5 #F5BF66 #9CF566
monochromatic
#270ED3 #452DF1 #7866F5 #AB9FF9 #DDD9FD

Accessibility & contrast

On white

4.19
#7866F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7866F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866F5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866F5#FFFFFF#000000##000000
##7866F51.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FA
Deuteranopia (green-blind)
#0077F2
Tritanopia (blue-blind)
#4787A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7866f5;
/* rgb */ color: rgb(120, 102, 245);
/* oklch */ color: oklch(60.4% 0.206 284.1);
Tailwind
colors: {
  custom: {
    50: '#a892f9',
    500: '#7866f5',
    950: '#000000',
  },
}
SCSS
$custom: #7866f5;
$custom-light: #a892f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7866f5",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 247.552,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.60374,
    "c": 0.20571,
    "h": 284.1
  },
  "luminance": 0.20088
}

Semantic roles & 50–950 ramp

primary
#7866F5
secondary
#ECF1C6
accent
#E401C8
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #7866F5

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

Preview Lab → · Contrast checker → · Palette generator →

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