#787EB8#787EB8

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

Color values

HEX#787EB8
RGBrgb(120, 126, 184)
HSLhsl(234, 31%, 60%)
HSVhsv(234, 35%, 72%)
CMYKcmyk(34.8%, 31.5%, 0%, 27.8%)
CIE-LABlab(54.42, 11.85, -31.22)
CIE-LCHlch(54.42, 33.39, 290.79°)
OKLaboklab(61.15% 0.0136 -0.087)
OKLCHoklch(61.15% 0.088 278.9)
XYZxyz(23.8559, 22.3746, 48.3999)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EB8 #B8B278
analogous
#789EB8 #787EB8 #9278B8
triadic
#787EB8 #B8787E #7EB878
tetradic
#787EB8 #B8789E #B8B278 #78B892
square
#787EB8 #B8789E #B8B278 #78B892
split-complementary
#787EB8 #B89278 #9EB878
monochromatic
#3F4477 #545B9F #787EB8 #A0A4CD #C8CBE2

Accessibility & contrast

On white

3.84
#787EB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787EB8#FFFFFF#000000##000000
##787EB81.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C85BA
Deuteranopia (green-blind)
#6880B7
Tritanopia (blue-blind)
#668993
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787eb8;
/* rgb */ color: rgb(120, 126, 184);
/* oklch */ color: oklch(61.1% 0.088 278.9);
Tailwind
colors: {
  custom: {
    50: '#a1a3cd',
    500: '#787eb8',
    950: '#000000',
  },
}
SCSS
$custom: #787eb8;
$custom-light: #a1a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787eb8",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 184
  },
  "hsl": {
    "h": 234.375,
    "s": 31.068,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61149,
    "c": 0.08805,
    "h": 278.9
  },
  "luminance": 0.22375
}

Semantic roles & 50–950 ramp

primary
#787EB8
secondary
#D2D0B9
accent
#BE61C7
background
#FAFAFC
surface
#F3F3F9
border
#CDCDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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