#787CC1#787CC1

#787CC1 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.2% C 0.104 H 280.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#787CC1
RGBrgb(120, 124, 193)
HSLhsl(237, 37%, 61%)
HSVhsv(237, 38%, 76%)
CMYKcmyk(37.8%, 35.8%, 0%, 24.3%)
CIE-LABlab(54.30, 15.52, -36.56)
CIE-LCHlch(54.30, 39.72, 293.01°)
OKLaboklab(61.19% 0.0186 -0.1024)
OKLCHoklch(61.19% 0.104 280.3)
XYZxyz(24.5763, 22.2577, 53.4430)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CC1 #C1BD78
analogous
#78A1C1 #787CC1 #9978C1
triadic
#787CC1 #C1787C #7CC178
tetradic
#787CC1 #C178A1 #C1BD78 #78C199
square
#787CC1 #C178A1 #C1BD78 #78C199
split-complementary
#787CC1 #C19978 #A1C178
monochromatic
#3C4083 #4F54AD #787CC1 #A2A5D4 #CCCDE8

Accessibility & contrast

On white

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

On black

5.45
#787CC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CC1
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CC1#FFFFFF#000000##000000
##787CC11.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6685C4
Deuteranopia (green-blind)
#627FBF
Tritanopia (blue-blind)
#638995
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787cc1;
/* rgb */ color: rgb(120, 124, 193);
/* oklch */ color: oklch(61.2% 0.104 280.3);
Tailwind
colors: {
  custom: {
    50: '#a1a1d4',
    500: '#787cc1',
    950: '#000000',
  },
}
SCSS
$custom: #787cc1;
$custom-light: #a1a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#787cc1",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 193
  },
  "hsl": {
    "h": 236.712,
    "s": 37.056,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61189,
    "c": 0.10409,
    "h": 280.3
  },
  "luminance": 0.22259
}

Semantic roles & 50–950 ramp

primary
#787CC1
secondary
#D8D7BD
accent
#A936B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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