#787EBA#787EBA

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

Color values

HEX#787EBA
RGBrgb(120, 126, 186)
HSLhsl(235, 32%, 60%)
HSVhsv(235, 35%, 73%)
CMYKcmyk(35.5%, 32.3%, 0%, 27.1%)
CIE-LABlab(54.51, 12.40, -32.23)
CIE-LCHlch(54.51, 34.53, 291.04°)
OKLaboklab(61.25% 0.0142 -0.0899)
OKLCHoklch(61.25% 0.091 279)
XYZxyz(24.0670, 22.4591, 49.5118)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EBA #BAB478
analogous
#789FBA #787EBA #9378BA
triadic
#787EBA #BA787E #7EBA78
tetradic
#787EBA #BA789F #BAB478 #78BA93
square
#787EBA #BA789F #BAB478 #78BA93
split-complementary
#787EBA #BA9378 #9FBA78
monochromatic
#3E447A #535AA2 #787EBA #A0A5CF #C9CBE3

Accessibility & contrast

On white

3.82
#787EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#787EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EBA
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EBA#FFFFFF#000000##000000
##787EBA1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BC
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#668994
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787eba;
/* rgb */ color: rgb(120, 126, 186);
/* oklch */ color: oklch(61.2% 0.091 279.0);
Tailwind
colors: {
  custom: {
    50: '#a1a3cf',
    500: '#787eba',
    950: '#000000',
  },
}
SCSS
$custom: #787eba;
$custom-light: #a1a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787eba",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 186
  },
  "hsl": {
    "h": 234.545,
    "s": 32.353,
    "l": 60
  },
  "oklch": {
    "l": 0.61247,
    "c": 0.091,
    "h": 279
  },
  "luminance": 0.2246
}

Semantic roles & 50–950 ramp

primary
#787EBA
secondary
#D4D1BA
accent
#BF5FC9
background
#FAFAFC
surface
#F3F3F9
border
#CDCDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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