#787CC2#787CC2

#787CC2 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.2% C 0.106 H 280.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#787CC2
RGBrgb(120, 124, 194)
HSLhsl(237, 38%, 62%)
HSVhsv(237, 38%, 76%)
CMYKcmyk(38.1%, 36.1%, 0%, 23.9%)
CIE-LABlab(54.35, 15.80, -37.05)
CIE-LCHlch(54.35, 40.28, 293.10°)
OKLaboklab(61.24% 0.0189 -0.1038)
OKLCHoklch(61.24% 0.106 280.3)
XYZxyz(24.6882, 22.3025, 54.0325)
Luminance0.2230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CC2 #C2BE78
analogous
#78A1C2 #787CC2 #9978C2
triadic
#787CC2 #C2787C #7CC278
tetradic
#787CC2 #C278A1 #C2BE78 #78C299
square
#787CC2 #C278A1 #C2BE78 #78C299
split-complementary
#787CC2 #C29978 #A1C278
monochromatic
#3C4084 #4F54AE #787CC2 #A2A5D5 #CCCEE8

Accessibility & contrast

On white

3.85
#787CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#787CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CC2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CC2#FFFFFF#000000##000000
##787CC21.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6585C5
Deuteranopia (green-blind)
#617FC0
Tritanopia (blue-blind)
#638A96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787cc2;
/* rgb */ color: rgb(120, 124, 194);
/* oklch */ color: oklch(61.2% 0.106 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#787cc2',
    950: '#000000',
  },
}
SCSS
$custom: #787cc2;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#787cc2",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 194
  },
  "hsl": {
    "h": 236.757,
    "s": 37.755,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61241,
    "c": 0.10555,
    "h": 280.3
  },
  "luminance": 0.22303
}

Semantic roles & 50–950 ramp

primary
#787CC2
secondary
#D9D7BD
accent
#AA35B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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