#787DC2#787DC2

#787DC2 is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.4% C 0.104 H 279.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#787DC2
RGBrgb(120, 125, 194)
HSLhsl(236, 38%, 62%)
HSVhsv(236, 38%, 76%)
CMYKcmyk(38.1%, 35.6%, 0%, 23.9%)
CIE-LABlab(54.61, 15.21, -36.64)
CIE-LCHlch(54.61, 39.67, 292.54°)
OKLaboklab(61.44% 0.0175 -0.1026)
OKLCHoklch(61.44% 0.104 279.7)
XYZxyz(24.8141, 22.5544, 54.0745)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DC2 #C2BD78
analogous
#78A2C2 #787DC2 #9878C2
triadic
#787DC2 #C2787D #7DC278
tetradic
#787DC2 #C278A2 #C2BD78 #78C298
square
#787DC2 #C278A2 #C2BD78 #78C298
split-complementary
#787DC2 #C29878 #A2C278
monochromatic
#3C4184 #4F55AE #787DC2 #A2A6D5 #CCCEE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787DC2#FFFFFF#000000##000000
##787DC21.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)
#6685C5
Deuteranopia (green-blind)
#6280C0
Tritanopia (blue-blind)
#638A96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787dc2;
/* rgb */ color: rgb(120, 125, 194);
/* oklch */ color: oklch(61.4% 0.104 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a2d4',
    500: '#787dc2',
    950: '#000000',
  },
}
SCSS
$custom: #787dc2;
$custom-light: #a2a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#787dc2",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 194
  },
  "hsl": {
    "h": 235.946,
    "s": 37.755,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61443,
    "c": 0.10414,
    "h": 279.7
  },
  "luminance": 0.22555
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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