#787CC7#787CC7

#787CC7 is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.5% C 0.113 H 280.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#787CC7
RGBrgb(120, 124, 199)
HSLhsl(237, 41%, 63%)
HSVhsv(237, 40%, 78%)
CMYKcmyk(39.7%, 37.7%, 0%, 22%)
CIE-LABlab(54.59, 17.21, -39.53)
CIE-LCHlch(54.59, 43.11, 293.53°)
OKLaboklab(61.5% 0.02 -0.111)
OKLCHoklch(61.5% 0.113 280.2)
XYZxyz(25.2592, 22.5309, 57.0397)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CC7 #C7C378
analogous
#78A3C7 #787CC7 #9B78C7
triadic
#787CC7 #C7787C #7CC778
tetradic
#787CC7 #C778A3 #C7C378 #78C79B
square
#787CC7 #C778A3 #C7C378 #78C79B
split-complementary
#787CC7 #C79B78 #A3C778
monochromatic
#3A3E8B #4D52B5 #787CC7 #A3A6D9 #CFD0EB

Accessibility & contrast

On white

3.81
#787CC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#787CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CC7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CC7#FFFFFF#000000##000000
##787CC71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6386CA
Deuteranopia (green-blind)
#5E80C5
Tritanopia (blue-blind)
#608B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787cc7;
/* rgb */ color: rgb(120, 124, 199);
/* oklch */ color: oklch(61.5% 0.113 280.2);
Tailwind
colors: {
  custom: {
    50: '#a2a1d8',
    500: '#787cc7',
    950: '#000000',
  },
}
SCSS
$custom: #787cc7;
$custom-light: #a2a1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#787cc7",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 199
  },
  "hsl": {
    "h": 236.962,
    "s": 41.361,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.11281,
    "h": 280.2
  },
  "luminance": 0.22532
}

Semantic roles & 50–950 ramp

primary
#787CC7
secondary
#DCDABF
accent
#AE31B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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