#787DBB#787DBB

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

Color values

HEX#787DBB
RGBrgb(120, 125, 187)
HSLhsl(236, 33%, 60%)
HSVhsv(236, 36%, 73%)
CMYKcmyk(35.8%, 33.2%, 0%, 26.7%)
CIE-LABlab(54.29, 13.27, -33.15)
CIE-LCHlch(54.29, 35.70, 291.81°)
OKLaboklab(61.09% 0.0158 -0.0925)
OKLCHoklch(61.09% 0.094 279.7)
XYZxyz(24.0464, 22.2473, 50.0313)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DBB #BBB678
analogous
#789FBB #787DBB #9478BB
triadic
#787DBB #BB787D #7DBB78
tetradic
#787DBB #BB789F #BBB678 #78BB94
square
#787DBB #BB789F #BBB678 #78BB94
split-complementary
#787DBB #BB9478 #9FBB78
monochromatic
#3E427B #5258A3 #787DBB #A1A4D0 #C9CBE4

Accessibility & contrast

On white

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

On black

5.45
#787DBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DBB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DBB#FFFFFF#000000##000000
##787DBB1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BE
Deuteranopia (green-blind)
#6680B9
Tritanopia (blue-blind)
#658993
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787dbb;
/* rgb */ color: rgb(120, 125, 187);
/* oklch */ color: oklch(61.1% 0.094 279.7);
Tailwind
colors: {
  custom: {
    50: '#a1a2cf',
    500: '#787dbb',
    950: '#000000',
  },
}
SCSS
$custom: #787dbb;
$custom-light: #a1a2cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787dbb",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 187
  },
  "hsl": {
    "h": 235.522,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.09388,
    "h": 279.7
  },
  "luminance": 0.22248
}

Semantic roles & 50–950 ramp

primary
#787DBB
secondary
#D4D2BB
accent
#A33AAC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #787DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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