#787BC7#787BC7

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

Color values

HEX#787BC7
RGBrgb(120, 123, 199)
HSLhsl(238, 41%, 63%)
HSVhsv(238, 40%, 78%)
CMYKcmyk(39.7%, 38.2%, 0%, 22%)
CIE-LABlab(54.32, 17.81, -39.94)
CIE-LCHlch(54.32, 43.73, 294.03°)
OKLaboklab(61.3% 0.0213 -0.1122)
OKLCHoklch(61.3% 0.114 280.7)
XYZxyz(25.1345, 22.2815, 56.9982)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC7 #C7C478
analogous
#78A2C7 #787BC7 #9D78C7
triadic
#787BC7 #C7787B #7BC778
tetradic
#787BC7 #C778A2 #C7C478 #78C79D
square
#787BC7 #C778A2 #C7C478 #78C79D
split-complementary
#787BC7 #C79D78 #A2C778
monochromatic
#3A3D8B #4D51B5 #787BC7 #A3A5D9 #CFD0EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787BC7#FFFFFF#000000##000000
##787BC71.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)
#6185CA
Deuteranopia (green-blind)
#5D7FC5
Tritanopia (blue-blind)
#618A97
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bc7;
/* rgb */ color: rgb(120, 123, 199);
/* oklch */ color: oklch(61.3% 0.114 280.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1d8',
    500: '#787bc7',
    950: '#000000',
  },
}
SCSS
$custom: #787bc7;
$custom-light: #a2a1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc7",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 199
  },
  "hsl": {
    "h": 237.722,
    "s": 41.361,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61302,
    "c": 0.11423,
    "h": 280.7
  },
  "luminance": 0.22283
}

Semantic roles & 50–950 ramp

primary
#787BC7
secondary
#DCDBBF
accent
#AF31B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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