#786ECF#786ECF

#786ECF is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.144 H 285.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#786ECF
RGBrgb(120, 110, 207)
HSLhsl(246, 50%, 62%)
HSVhsv(246, 47%, 81%)
CMYKcmyk(42%, 46.9%, 0%, 18.8%)
CIE-LABlab(51.44, 27.88, -49.07)
CIE-LCHlch(51.44, 56.43, 299.60°)
OKLaboklab(59.24% 0.0393 -0.1389)
OKLCHoklch(59.24% 0.144 285.8)
XYZxyz(24.5809, 19.6490, 61.5169)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECF #C5CF6E
analogous
#6E94CF #786ECF #A96ECF
triadic
#786ECF #CF786E #6ECF78
tetradic
#786ECF #CF6E94 #C5CF6E #6ECFA9
square
#786ECF #CF6E94 #C5CF6E #6ECFA9
split-complementary
#786ECF #CFA96E #94CF6E
monochromatic
#3A3092 #4D40C0 #786ECF #A39CDE #CECAED

Accessibility & contrast

On white

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

On black

4.93
#786ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECF#FFFFFF#000000##000000
##786ECF1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#487DD3
Deuteranopia (green-blind)
#4678CD
Tritanopia (blue-blind)
#5E8294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ecf;
/* rgb */ color: rgb(120, 110, 207);
/* oklch */ color: oklch(59.2% 0.144 285.8);
Tailwind
colors: {
  custom: {
    50: '#a397de',
    500: '#786ecf',
    950: '#000000',
  },
}
SCSS
$custom: #786ecf;
$custom-light: #a397de;
$custom-dark: #000000;
JSON
{
  "hex": "#786ecf",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 207
  },
  "hsl": {
    "h": 246.186,
    "s": 50.259,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59244,
    "c": 0.14439,
    "h": 285.8
  },
  "luminance": 0.1965
}

Semantic roles & 50–950 ramp

primary
#786ECF
secondary
#DBDEBB
accent
#BE28AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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