#787CB5#787CB5

#787CB5 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.6% C 0.086 H 280.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#787CB5
RGBrgb(120, 124, 181)
HSLhsl(236, 29%, 59%)
HSVhsv(236, 34%, 71%)
CMYKcmyk(33.7%, 31.5%, 0%, 29%)
CIE-LABlab(53.75, 12.22, -30.54)
CIE-LCHlch(53.75, 32.89, 291.82°)
OKLaboklab(60.59% 0.0156 -0.085)
OKLCHoklch(60.59% 0.086 280.4)
XYZxyz(23.2916, 21.7438, 46.6769)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB5 #B5B178
analogous
#789BB5 #787CB5 #9378B5
triadic
#787CB5 #B5787C #7CB578
tetradic
#787CB5 #B5789B #B5B178 #78B593
square
#787CB5 #B5789B #B5B178 #78B593
split-complementary
#787CB5 #B59378 #9BB578
monochromatic
#3F4373 #55599B #787CB5 #A0A2CB #C7C9E0

Accessibility & contrast

On white

3.93
#787CB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#787CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB5
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB5#FFFFFF#000000##000000
##787CB51.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B83B7
Deuteranopia (green-blind)
#687EB4
Tritanopia (blue-blind)
#688790
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787cb5;
/* rgb */ color: rgb(120, 124, 181);
/* oklch */ color: oklch(60.6% 0.086 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1cb',
    500: '#787cb5',
    950: '#000000',
  },
}
SCSS
$custom: #787cb5;
$custom-light: #a1a1cb;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb5",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 181
  },
  "hsl": {
    "h": 236.066,
    "s": 29.187,
    "l": 59.02
  },
  "oklch": {
    "l": 0.6059,
    "c": 0.08644,
    "h": 280.4
  },
  "luminance": 0.21745
}

Semantic roles & 50–950 ramp

primary
#787CB5
secondary
#D0CFB8
accent
#BF62C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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