#787FBA#787FBA

#787FBA is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.5% C 0.090 H 278.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#787FBA
RGBrgb(120, 127, 186)
HSLhsl(234, 32%, 60%)
HSVhsv(234, 35%, 73%)
CMYKcmyk(35.5%, 31.7%, 0%, 27.1%)
CIE-LABlab(54.78, 11.80, -31.81)
CIE-LCHlch(54.78, 33.93, 290.36°)
OKLaboklab(61.45% 0.0128 -0.0887)
OKLCHoklch(61.45% 0.09 278.2)
XYZxyz(24.1955, 22.7161, 49.5547)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FBA #BAB378
analogous
#78A0BA #787FBA #9278BA
triadic
#787FBA #BA787F #7FBA78
tetradic
#787FBA #BA78A0 #BAB378 #78BA92
square
#787FBA #BA78A0 #BAB378 #78BA92
split-complementary
#787FBA #BA9278 #A0BA78
monochromatic
#3E447A #535BA2 #787FBA #A0A5CF #C9CCE3

Accessibility & contrast

On white

3.79
#787FBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#787FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FBA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FBA#FFFFFF#000000##000000
##787FBA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C86BC
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#668A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787fba;
/* rgb */ color: rgb(120, 127, 186);
/* oklch */ color: oklch(61.5% 0.090 278.2);
Tailwind
colors: {
  custom: {
    50: '#a1a4cf',
    500: '#787fba',
    950: '#000000',
  },
}
SCSS
$custom: #787fba;
$custom-light: #a1a4cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787fba",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 186
  },
  "hsl": {
    "h": 233.636,
    "s": 32.353,
    "l": 60
  },
  "oklch": {
    "l": 0.61453,
    "c": 0.0896,
    "h": 278.2
  },
  "luminance": 0.22717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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