#787FC4#787FC4

#787FC4 is a mid, moderate blue. Relative luminance 0.232; OKLCH L 62.0% C 0.104 H 278.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#787FC4
RGBrgb(120, 127, 196)
HSLhsl(234, 39%, 62%)
HSVhsv(234, 39%, 77%)
CMYKcmyk(38.8%, 35.2%, 0%, 23.1%)
CIE-LABlab(55.23, 14.58, -36.80)
CIE-LCHlch(55.23, 39.59, 291.61°)
OKLaboklab(61.95% 0.0154 -0.1031)
OKLCHoklch(61.95% 0.104 278.5)
XYZxyz(25.2960, 23.1563, 55.3506)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FC4 #C4BD78
analogous
#78A5C4 #787FC4 #9778C4
triadic
#787FC4 #C4787F #7FC478
tetradic
#787FC4 #C478A5 #C4BD78 #78C497
square
#787FC4 #C478A5 #C4BD78 #78C497
split-complementary
#787FC4 #C49778 #A5C478
monochromatic
#3B4287 #4D57B1 #787FC4 #A3A7D7 #CDD0E9

Accessibility & contrast

On white

3.73
#787FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#787FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FC4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FC4#FFFFFF#000000##000000
##787FC41.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6887C7
Deuteranopia (green-blind)
#6382C2
Tritanopia (blue-blind)
#628C98
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787fc4;
/* rgb */ color: rgb(120, 127, 196);
/* oklch */ color: oklch(62.0% 0.104 278.5);
Tailwind
colors: {
  custom: {
    50: '#a2a4d6',
    500: '#787fc4',
    950: '#000000',
  },
}
SCSS
$custom: #787fc4;
$custom-light: #a2a4d6;
$custom-dark: #000000;
JSON
{
  "hex": "#787fc4",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 196
  },
  "hsl": {
    "h": 234.474,
    "s": 39.175,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61953,
    "c": 0.10426,
    "h": 278.5
  },
  "luminance": 0.23157
}

Semantic roles & 50–950 ramp

primary
#787FC4
secondary
#DAD7BE
accent
#A633B2
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #787FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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