#7866DD#7866DD

#7866DD is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.7% C 0.175 H 286.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7866DD
RGBrgb(120, 102, 221)
HSLhsl(249, 64%, 63%)
HSVhsv(249, 54%, 87%)
CMYKcmyk(45.7%, 53.8%, 0%, 13.3%)
CIE-LABlab(50.35, 36.67, -58.75)
CIE-LCHlch(50.35, 69.26, 301.97°)
OKLaboklab(58.7% 0.0501 -0.1674)
OKLCHoklch(58.7% 0.175 286.6)
XYZxyz(25.5445, 18.7152, 70.6590)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866DD #CBDD66
analogous
#668FDD #7866DD #B366DD
triadic
#7866DD #DD7866 #66DD78
tetradic
#7866DD #DD668F #CBDD66 #66DDB3
square
#7866DD #DD668F #CBDD66 #66DDB3
split-complementary
#7866DD #DDB366 #8FDD66
monochromatic
#3824A4 #4C34D2 #7866DD #A498E8 #D0CAF3

Accessibility & contrast

On white

4.43
#7866DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7866DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866DD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866DD#FFFFFF#000000##000000
##7866DD1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#277BE1
Deuteranopia (green-blind)
#2574DA
Tritanopia (blue-blind)
#578098
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7866dd;
/* rgb */ color: rgb(120, 102, 221);
/* oklch */ color: oklch(58.7% 0.175 286.6);
Tailwind
colors: {
  custom: {
    50: '#a592e8',
    500: '#7866dd',
    950: '#000000',
  },
}
SCSS
$custom: #7866dd;
$custom-light: #a592e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7866dd",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 221
  },
  "hsl": {
    "h": 249.076,
    "s": 63.636,
    "l": 63.333
  },
  "oklch": {
    "l": 0.587,
    "c": 0.17472,
    "h": 286.6
  },
  "luminance": 0.18716
}

Semantic roles & 50–950 ramp

primary
#7866DD
secondary
#DEE5BA
accent
#CB1AB1
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #7866DD

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

Preview Lab → · Contrast checker → · Palette generator →

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