#787CCF#787CCF

#787CCF is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.9% C 0.124 H 280.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#787CCF
RGBrgb(120, 124, 207)
HSLhsl(237, 48%, 64%)
HSVhsv(237, 42%, 81%)
CMYKcmyk(42%, 40.1%, 0%, 18.8%)
CIE-LABlab(54.98, 19.50, -43.44)
CIE-LCHlch(54.98, 47.62, 294.17°)
OKLaboklab(61.93% 0.0216 -0.1224)
OKLCHoklch(61.93% 0.124 280)
XYZxyz(26.2125, 22.9122, 62.0607)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CCF #CFCB78
analogous
#78A8CF #787CCF #A078CF
triadic
#787CCF #CF787C #7CCF78
tetradic
#787CCF #CF78A8 #CFCB78 #78CFA0
square
#787CCF #CF78A8 #CFCB78 #78CFA0
split-complementary
#787CCF #CFA078 #A8CF78
monochromatic
#363A97 #4B50BF #787CCF #A5A8DF #D2D4EF

Accessibility & contrast

On white

3.76
#787CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#787CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CCF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CCF#FFFFFF#000000##000000
##787CCF1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E87D2
Deuteranopia (green-blind)
#5981CD
Tritanopia (blue-blind)
#5D8D9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787ccf;
/* rgb */ color: rgb(120, 124, 207);
/* oklch */ color: oklch(61.9% 0.124 280.0);
Tailwind
colors: {
  custom: {
    50: '#a3a1de',
    500: '#787ccf',
    950: '#000000',
  },
}
SCSS
$custom: #787ccf;
$custom-light: #a3a1de;
$custom-dark: #000000;
JSON
{
  "hex": "#787ccf",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 207
  },
  "hsl": {
    "h": 237.241,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.12432,
    "h": 280
  },
  "luminance": 0.22913
}

Semantic roles & 50–950 ramp

primary
#787CCF
secondary
#E1DFC2
accent
#B42BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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