#787FBC#787FBC

#787FBC is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.6% C 0.093 H 278.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#787FBC
RGBrgb(120, 127, 188)
HSLhsl(234, 34%, 60%)
HSVhsv(234, 36%, 74%)
CMYKcmyk(36.2%, 32.4%, 0%, 26.3%)
CIE-LABlab(54.87, 12.35, -32.81)
CIE-LCHlch(54.87, 35.06, 290.63°)
OKLaboklab(61.55% 0.0133 -0.0916)
OKLCHoklch(61.55% 0.093 278.3)
XYZxyz(24.4096, 22.8018, 50.6823)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FBC #BCB578
analogous
#78A1BC #787FBC #9378BC
triadic
#787FBC #BC787F #7FBC78
tetradic
#787FBC #BC78A1 #BCB578 #78BC93
square
#787FBC #BC78A1 #BCB578 #78BC93
split-complementary
#787FBC #BC9378 #A1BC78
monochromatic
#3E447C #525AA5 #787FBC #A1A6D0 #CACDE5

Accessibility & contrast

On white

3.78
#787FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#787FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FBC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FBC#FFFFFF#000000##000000
##787FBC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C86BF
Deuteranopia (green-blind)
#6781BB
Tritanopia (blue-blind)
#658B95
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787fbc;
/* rgb */ color: rgb(120, 127, 188);
/* oklch */ color: oklch(61.6% 0.093 278.3);
Tailwind
colors: {
  custom: {
    50: '#a1a4d0',
    500: '#787fbc',
    950: '#000000',
  },
}
SCSS
$custom: #787fbc;
$custom-light: #a1a4d0;
$custom-dark: #000000;
JSON
{
  "hex": "#787fbc",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 188
  },
  "hsl": {
    "h": 233.824,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61551,
    "c": 0.09255,
    "h": 278.3
  },
  "luminance": 0.22803
}

Semantic roles & 50–950 ramp

primary
#787FBC
secondary
#D5D2BB
accent
#A139AC
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #787FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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