#787DBC#787DBC

#787DBC is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.1% C 0.095 H 279.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#787DBC
RGBrgb(120, 125, 188)
HSLhsl(236, 34%, 60%)
HSVhsv(236, 36%, 74%)
CMYKcmyk(36.2%, 33.5%, 0%, 26.3%)
CIE-LABlab(54.33, 13.54, -33.65)
CIE-LCHlch(54.33, 36.27, 291.92°)
OKLaboklab(61.14% 0.0161 -0.094)
OKLCHoklch(61.14% 0.095 279.7)
XYZxyz(24.1539, 22.2903, 50.5970)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DBC #BCB778
analogous
#789FBC #787DBC #9578BC
triadic
#787DBC #BC787D #7DBC78
tetradic
#787DBC #BC789F #BCB778 #78BC95
square
#787DBC #BC789F #BCB778 #78BC95
split-complementary
#787DBC #BC9578 #9FBC78
monochromatic
#3E427C #5258A5 #787DBC #A1A4D0 #CACCE5

Accessibility & contrast

On white

3.85
#787DBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#787DBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DBC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DBC#FFFFFF#000000##000000
##787DBC1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6985BF
Deuteranopia (green-blind)
#6580BA
Tritanopia (blue-blind)
#658994
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787dbc;
/* rgb */ color: rgb(120, 125, 188);
/* oklch */ color: oklch(61.1% 0.095 279.7);
Tailwind
colors: {
  custom: {
    50: '#a1a2d0',
    500: '#787dbc',
    950: '#000000',
  },
}
SCSS
$custom: #787dbc;
$custom-light: #a1a2d0;
$custom-dark: #000000;
JSON
{
  "hex": "#787dbc",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 188
  },
  "hsl": {
    "h": 235.588,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6114,
    "c": 0.09535,
    "h": 279.7
  },
  "luminance": 0.22291
}

Semantic roles & 50–950 ramp

primary
#787DBC
secondary
#D5D3BB
accent
#A439AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #787DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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