#786CD8#786CD8

#786CD8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.4% C 0.160 H 285.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#786CD8
RGBrgb(120, 108, 216)
HSLhsl(247, 58%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44.4%, 50%, 0%, 15.3%)
CIE-LABlab(51.47, 31.67, -54.13)
CIE-LCHlch(51.47, 62.71, 300.33°)
OKLaboklab(59.43% 0.0427 -0.1538)
OKLCHoklch(59.43% 0.16 285.5)
XYZxyz(25.4994, 19.6750, 67.4065)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD8 #CCD86C
analogous
#6C96D8 #786CD8 #AE6CD8
triadic
#786CD8 #D8786C #6CD878
tetradic
#786CD8 #D86C96 #CCD86C #6CD8AE
square
#786CD8 #D86C96 #CCD86C #6CD8AE
split-complementary
#786CD8 #D8AE6C #96D86C
monochromatic
#372A9F #4C3CCB #786CD8 #A49CE5 #D1CDF2

Accessibility & contrast

On white

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

On black

4.94
#786CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD8#FFFFFF#000000##000000
##786CD81.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7EDC
Deuteranopia (green-blind)
#3977D6
Tritanopia (blue-blind)
#5A8398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786cd8;
/* rgb */ color: rgb(120, 108, 216);
/* oklch */ color: oklch(59.4% 0.160 285.5);
Tailwind
colors: {
  custom: {
    50: '#a496e5',
    500: '#786cd8',
    950: '#000000',
  },
}
SCSS
$custom: #786cd8;
$custom-light: #a496e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd8",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 216
  },
  "hsl": {
    "h": 246.667,
    "s": 58.065,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59434,
    "c": 0.15961,
    "h": 285.5
  },
  "luminance": 0.19676
}

Semantic roles & 50–950 ramp

primary
#786CD8
secondary
#DFE3BD
accent
#C620B3
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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