#787DBA#787DBA

#787DBA is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.0% C 0.092 H 279.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#787DBA
RGBrgb(120, 125, 186)
HSLhsl(235, 32%, 60%)
HSVhsv(235, 35%, 73%)
CMYKcmyk(35.5%, 32.8%, 0%, 27.1%)
CIE-LABlab(54.24, 12.99, -32.64)
CIE-LCHlch(54.24, 35.13, 291.70°)
OKLaboklab(61.04% 0.0155 -0.0911)
OKLCHoklch(61.04% 0.092 279.7)
XYZxyz(23.9398, 22.2046, 49.4694)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DBA #BAB578
analogous
#789EBA #787DBA #9478BA
triadic
#787DBA #BA787D #7DBA78
tetradic
#787DBA #BA789E #BAB578 #78BA94
square
#787DBA #BA789E #BAB578 #78BA94
split-complementary
#787DBA #BA9478 #9EBA78
monochromatic
#3E437A #5359A2 #787DBA #A0A4CF #C9CBE3

Accessibility & contrast

On white

3.86
#787DBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#787DBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DBA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DBA#FFFFFF#000000##000000
##787DBA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A84BD
Deuteranopia (green-blind)
#667FB9
Tritanopia (blue-blind)
#668993
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787dba;
/* rgb */ color: rgb(120, 125, 186);
/* oklch */ color: oklch(61.0% 0.092 279.7);
Tailwind
colors: {
  custom: {
    50: '#a1a2cf',
    500: '#787dba',
    950: '#000000',
  },
}
SCSS
$custom: #787dba;
$custom-light: #a1a2cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787dba",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 186
  },
  "hsl": {
    "h": 235.455,
    "s": 32.353,
    "l": 60
  },
  "oklch": {
    "l": 0.6104,
    "c": 0.09241,
    "h": 279.7
  },
  "luminance": 0.22205
}

Semantic roles & 50–950 ramp

primary
#787DBA
secondary
#D4D2BA
accent
#C15FC9
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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