#787EBB#787EBB

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

Color values

HEX#787EBB
RGBrgb(120, 126, 187)
HSLhsl(235, 33%, 60%)
HSVhsv(235, 36%, 73%)
CMYKcmyk(35.8%, 32.6%, 0%, 26.7%)
CIE-LABlab(54.56, 12.67, -32.73)
CIE-LCHlch(54.56, 35.10, 291.17°)
OKLaboklab(61.3% 0.0144 -0.0913)
OKLCHoklch(61.3% 0.092 279)
XYZxyz(24.1737, 22.5018, 50.0737)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EBB #BBB578
analogous
#789FBB #787EBB #9378BB
triadic
#787EBB #BB787E #7EBB78
tetradic
#787EBB #BB789F #BBB578 #78BB93
square
#787EBB #BB789F #BBB578 #78BB93
split-complementary
#787EBB #BB9378 #9FBB78
monochromatic
#3E437B #525AA3 #787EBB #A1A5D0 #C9CCE4

Accessibility & contrast

On white

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

On black

5.50
#787EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EBB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EBB#FFFFFF#000000##000000
##787EBB1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BE
Deuteranopia (green-blind)
#6780BA
Tritanopia (blue-blind)
#658A94
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787ebb;
/* rgb */ color: rgb(120, 126, 187);
/* oklch */ color: oklch(61.3% 0.092 279.0);
Tailwind
colors: {
  custom: {
    50: '#a1a3cf',
    500: '#787ebb',
    950: '#000000',
  },
}
SCSS
$custom: #787ebb;
$custom-light: #a1a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787ebb",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 187
  },
  "hsl": {
    "h": 234.627,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61296,
    "c": 0.09247,
    "h": 279
  },
  "luminance": 0.22503
}

Semantic roles & 50–950 ramp

primary
#787EBB
secondary
#D4D2BB
accent
#A23AAC
background
#FAFAFC
surface
#F3F3F9
border
#CDCDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #787EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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