#787DC6#787DC6

#787DC6 is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.7% C 0.110 H 279.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#787DC6
RGBrgb(120, 125, 198)
HSLhsl(236, 41%, 62%)
HSVhsv(236, 39%, 78%)
CMYKcmyk(39.4%, 36.9%, 0%, 22.4%)
CIE-LABlab(54.80, 16.33, -38.62)
CIE-LCHlch(54.80, 41.93, 292.92°)
OKLaboklab(61.65% 0.0185 -0.1084)
OKLCHoklch(61.65% 0.11 279.7)
XYZxyz(25.2694, 22.7365, 56.4723)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DC6 #C6C178
analogous
#78A4C6 #787DC6 #9A78C6
triadic
#787DC6 #C6787D #7DC678
tetradic
#787DC6 #C678A4 #C6C178 #78C69A
square
#787DC6 #C678A4 #C6C178 #78C69A
split-complementary
#787DC6 #C69A78 #A4C678
monochromatic
#3A3F8A #4D54B4 #787DC6 #A3A6D8 #CED0EA

Accessibility & contrast

On white

3.79
#787DC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#787DC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DC6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DC6#FFFFFF#000000##000000
##787DC61.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6486C9
Deuteranopia (green-blind)
#6080C4
Tritanopia (blue-blind)
#618B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787dc6;
/* rgb */ color: rgb(120, 125, 198);
/* oklch */ color: oklch(61.7% 0.110 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a2d7',
    500: '#787dc6',
    950: '#000000',
  },
}
SCSS
$custom: #787dc6;
$custom-light: #a2a2d7;
$custom-dark: #000000;
JSON
{
  "hex": "#787dc6",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 198
  },
  "hsl": {
    "h": 236.154,
    "s": 40.625,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61651,
    "c": 0.10996,
    "h": 279.7
  },
  "luminance": 0.22738
}

Semantic roles & 50–950 ramp

primary
#787DC6
secondary
#DBD9BF
accent
#AB32B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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