#7866DB#7866DB

#7866DB is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.6% C 0.172 H 286.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7866DB
RGBrgb(120, 102, 219)
HSLhsl(249, 62%, 63%)
HSVhsv(249, 53%, 86%)
CMYKcmyk(45.2%, 53.4%, 0%, 14.1%)
CIE-LABlab(50.23, 36.09, -57.82)
CIE-LCHlch(50.23, 68.16, 301.97°)
OKLaboklab(58.57% 0.05 -0.1647)
OKLCHoklch(58.57% 0.172 286.9)
XYZxyz(25.2796, 18.6092, 69.2641)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866DB #C9DB66
analogous
#668EDB #7866DB #B366DB
triadic
#7866DB #DB7866 #66DB78
tetradic
#7866DB #DB668E #C9DB66 #66DBB3
square
#7866DB #DB668E #C9DB66 #66DBB3
split-complementary
#7866DB #DBB366 #8EDB66
monochromatic
#3926A1 #4C34CF #7866DB #A498E7 #CFC9F2

Accessibility & contrast

On white

4.45
#7866DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7866DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866DB#FFFFFF#000000##000000
##7866DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7ADF
Deuteranopia (green-blind)
#2974D8
Tritanopia (blue-blind)
#597F97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7866db;
/* rgb */ color: rgb(120, 102, 219);
/* oklch */ color: oklch(58.6% 0.172 286.9);
Tailwind
colors: {
  custom: {
    50: '#a592e7',
    500: '#7866db',
    950: '#000000',
  },
}
SCSS
$custom: #7866db;
$custom-light: #a592e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7866db",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 219
  },
  "hsl": {
    "h": 249.231,
    "s": 61.905,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58566,
    "c": 0.17208,
    "h": 286.9
  },
  "luminance": 0.1861
}

Semantic roles & 50–950 ramp

primary
#7866DB
secondary
#DDE3B9
accent
#CA1CAF
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #7866DB

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

Preview Lab → · Contrast checker → · Palette generator →

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