#787FB2#787FB2

#787FB2 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.1% C 0.078 H 277.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#787FB2
RGBrgb(120, 127, 178)
HSLhsl(233, 27%, 58%)
HSVhsv(233, 33%, 70%)
CMYKcmyk(32.6%, 28.7%, 0%, 30.2%)
CIE-LABlab(54.43, 9.64, -27.76)
CIE-LCHlch(54.43, 29.39, 289.15°)
OKLaboklab(61.07% 0.0106 -0.077)
OKLCHoklch(61.07% 0.078 277.8)
XYZxyz(23.3688, 22.3854, 45.2004)
Luminance0.2239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FB2 #B2AB78
analogous
#789CB2 #787FB2 #8E78B2
triadic
#787FB2 #B2787F #7FB278
tetradic
#787FB2 #B2789C #B2AB78 #78B28E
square
#787FB2 #B2789C #B2AB78 #78B28E
split-complementary
#787FB2 #B28E78 #9CB278
monochromatic
#404670 #565E97 #787FB2 #9FA4C8 #C6C9DE

Accessibility & contrast

On white

3.83
#787FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#787FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FB2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FB2#FFFFFF#000000##000000
##787FB21.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7084B4
Deuteranopia (green-blind)
#6C80B1
Tritanopia (blue-blind)
#698991
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787fb2;
/* rgb */ color: rgb(120, 127, 178);
/* oklch */ color: oklch(61.1% 0.078 277.8);
Tailwind
colors: {
  custom: {
    50: '#a0a4c9',
    500: '#787fb2',
    950: '#000000',
  },
}
SCSS
$custom: #787fb2;
$custom-light: #a0a4c9;
$custom-dark: #000000;
JSON
{
  "hex": "#787fb2",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 178
  },
  "hsl": {
    "h": 232.759,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.07777,
    "h": 277.8
  },
  "luminance": 0.22386
}

Semantic roles & 50–950 ramp

primary
#787FB2
secondary
#CECCB7
accent
#B864C4
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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