#7866FB#7866FB

#7866FB is a mid, highly saturated blue. Relative luminance 0.205; OKLCH L 60.8% C 0.213 H 283.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7866FB
RGBrgb(120, 102, 251)
HSLhsl(247, 95%, 69%)
HSVhsv(247, 59%, 98%)
CMYKcmyk(52.2%, 59.4%, 0%, 1.6%)
CIE-LABlab(52.35, 45.45, -72.33)
CIE-LCHlch(52.35, 85.43, 302.14°)
OKLaboklab(60.81% 0.0499 -0.2073)
OKLCHoklch(60.81% 0.213 283.5)
XYZxyz(29.9044, 20.4592, 93.6213)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866FB #E9FB66
analogous
#669FFB #7866FB #C266FB
triadic
#7866FB #FB7866 #66FB78
tetradic
#7866FB #FB669F #E9FB66 #66FBC2
square
#7866FB #FB669F #E9FB66 #66FBC2
split-complementary
#7866FB #FBC266 #9FFB66
monochromatic
#2006E1 #432AF9 #7866FB #ADA2FD #E1DDFE

Accessibility & contrast

On white

4.12
#7866FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#7866FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866FB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866FB#FFFFFF#000000##000000
##7866FB1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FF
Deuteranopia (green-blind)
#0078F8
Tritanopia (blue-blind)
#4189A7
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7866fb;
/* rgb */ color: rgb(120, 102, 251);
/* oklch */ color: oklch(60.8% 0.213 283.5);
Tailwind
colors: {
  custom: {
    50: '#a992fe',
    500: '#7866fb',
    950: '#000000',
  },
}
SCSS
$custom: #7866fb;
$custom-light: #a992fe;
$custom-dark: #000000;
JSON
{
  "hex": "#7866fb",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 247.248,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.60812,
    "c": 0.21326,
    "h": 283.5
  },
  "luminance": 0.20461
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7866FB

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

Preview Lab → · Contrast checker → · Palette generator →

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