#787BC2#787BC2

#787BC2 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.0% C 0.107 H 280.9°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#787BC2
RGBrgb(120, 123, 194)
HSLhsl(238, 38%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(38.1%, 36.6%, 0%, 23.9%)
CIE-LABlab(54.08, 16.40, -37.47)
CIE-LCHlch(54.08, 40.90, 293.64°)
OKLaboklab(61.04% 0.0202 -0.105)
OKLCHoklch(61.04% 0.107 280.9)
XYZxyz(24.5635, 22.0531, 53.9909)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC2 #C2BF78
analogous
#78A0C2 #787BC2 #9A78C2
triadic
#787BC2 #C2787B #7BC278
tetradic
#787BC2 #C278A0 #C2BF78 #78C29A
square
#787BC2 #C278A0 #C2BF78 #78C29A
split-complementary
#787BC2 #C29A78 #A0C278
monochromatic
#3C3F84 #4F53AE #787BC2 #A2A4D5 #CCCDE8

Accessibility & contrast

On white

3.88
#787BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#787BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC2#FFFFFF#000000##000000
##787BC21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C5
Deuteranopia (green-blind)
#607FC0
Tritanopia (blue-blind)
#638995
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787bc2;
/* rgb */ color: rgb(120, 123, 194);
/* oklch */ color: oklch(61.0% 0.107 280.9);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#787bc2',
    950: '#000000',
  },
}
SCSS
$custom: #787bc2;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 237.568,
    "s": 37.755,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61038,
    "c": 0.10697,
    "h": 280.9
  },
  "luminance": 0.22054
}

Semantic roles & 50–950 ramp

primary
#787BC2
secondary
#D9D8BD
accent
#AC35B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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