#787BC8#787BC8

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

Color values

HEX#787BC8
RGBrgb(120, 123, 200)
HSLhsl(238, 42%, 63%)
HSVhsv(238, 40%, 78%)
CMYKcmyk(40%, 38.5%, 0%, 21.6%)
CIE-LABlab(54.37, 18.09, -40.43)
CIE-LCHlch(54.37, 44.29, 294.11°)
OKLaboklab(61.36% 0.0215 -0.1137)
OKLCHoklch(61.36% 0.116 280.7)
XYZxyz(25.2510, 22.3281, 57.6117)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC8 #C8C578
analogous
#78A3C8 #787BC8 #9D78C8
triadic
#787BC8 #C8787B #7BC878
tetradic
#787BC8 #C878A3 #C8C578 #78C89D
square
#787BC8 #C878A3 #C8C578 #78C89D
split-complementary
#787BC8 #C89D78 #A3C878
monochromatic
#393C8C #4D50B6 #787BC8 #A3A6DA #CFD0EB

Accessibility & contrast

On white

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

On black

5.47
#787BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC8#FFFFFF#000000##000000
##787BC81.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6185CB
Deuteranopia (green-blind)
#5C7FC6
Tritanopia (blue-blind)
#608A98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bc8;
/* rgb */ color: rgb(120, 123, 200);
/* oklch */ color: oklch(61.4% 0.116 280.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1d9',
    500: '#787bc8',
    950: '#000000',
  },
}
SCSS
$custom: #787bc8;
$custom-light: #a2a1d9;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc8",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 200
  },
  "hsl": {
    "h": 237.75,
    "s": 42.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61356,
    "c": 0.11568,
    "h": 280.7
  },
  "luminance": 0.22329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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