#786CD7#786CD7

#786CD7 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.4% C 0.158 H 285.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#786CD7
RGBrgb(120, 108, 215)
HSLhsl(247, 57%, 63%)
HSVhsv(247, 50%, 84%)
CMYKcmyk(44.2%, 49.8%, 0%, 15.7%)
CIE-LABlab(51.41, 31.38, -53.66)
CIE-LCHlch(51.41, 62.16, 300.32°)
OKLaboklab(59.37% 0.0426 -0.1524)
OKLCHoklch(59.37% 0.158 285.6)
XYZxyz(25.3705, 19.6234, 66.7277)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD7 #CBD76C
analogous
#6C95D7 #786CD7 #AD6CD7
triadic
#786CD7 #D7786C #6CD778
tetradic
#786CD7 #D76C95 #CBD76C #6CD7AD
square
#786CD7 #D76C95 #CBD76C #6CD7AD
split-complementary
#786CD7 #D7AD6C #95D76C
monochromatic
#382B9E #4C3CCA #786CD7 #A49CE4 #D0CCF1

Accessibility & contrast

On white

4.26
#786CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#786CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD7#FFFFFF#000000##000000
##786CD71.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7DDB
Deuteranopia (green-blind)
#3B77D5
Tritanopia (blue-blind)
#5A8397
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd7;
/* rgb */ color: rgb(120, 108, 215);
/* oklch */ color: oklch(59.4% 0.158 285.6);
Tailwind
colors: {
  custom: {
    50: '#a496e4',
    500: '#786cd7',
    950: '#000000',
  },
}
SCSS
$custom: #786cd7;
$custom-light: #a496e4;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 215
  },
  "hsl": {
    "h": 246.729,
    "s": 57.219,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59371,
    "c": 0.15825,
    "h": 285.6
  },
  "luminance": 0.19624
}

Semantic roles & 50–950 ramp

primary
#786CD7
secondary
#DEE2BC
accent
#C521B2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CD7

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

Preview Lab → · Contrast checker → · Palette generator →

#786CD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva