#787EBC#787EBC

#787EBC is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.3% C 0.094 H 279.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#787EBC
RGBrgb(120, 126, 188)
HSLhsl(235, 34%, 60%)
HSVhsv(235, 36%, 74%)
CMYKcmyk(36.2%, 33%, 0%, 26.3%)
CIE-LABlab(54.60, 12.95, -33.23)
CIE-LCHlch(54.60, 35.66, 291.29°)
OKLaboklab(61.35% 0.0147 -0.0928)
OKLCHoklch(61.35% 0.094 279)
XYZxyz(24.2811, 22.5447, 50.6394)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EBC #BCB678
analogous
#78A0BC #787EBC #9478BC
triadic
#787EBC #BC787E #7EBC78
tetradic
#787EBC #BC78A0 #BCB678 #78BC94
square
#787EBC #BC78A0 #BCB678 #78BC94
split-complementary
#787EBC #BC9478 #A0BC78
monochromatic
#3E437C #5259A5 #787EBC #A1A5D0 #CACCE5

Accessibility & contrast

On white

3.81
#787EBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#787EBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EBC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EBC#FFFFFF#000000##000000
##787EBC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A85BF
Deuteranopia (green-blind)
#6680BB
Tritanopia (blue-blind)
#658A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ebc;
/* rgb */ color: rgb(120, 126, 188);
/* oklch */ color: oklch(61.3% 0.094 279.0);
Tailwind
colors: {
  custom: {
    50: '#a1a3d0',
    500: '#787ebc',
    950: '#000000',
  },
}
SCSS
$custom: #787ebc;
$custom-light: #a1a3d0;
$custom-dark: #000000;
JSON
{
  "hex": "#787ebc",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 188
  },
  "hsl": {
    "h": 234.706,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61345,
    "c": 0.09395,
    "h": 279
  },
  "luminance": 0.22546
}

Semantic roles & 50–950 ramp

primary
#787EBC
secondary
#D5D3BB
accent
#A239AC
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #787EBC

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

Preview Lab → · Contrast checker → · Palette generator →

#787EBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva