#787DCF#787DCF

#787DCF is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.1% C 0.123 H 279.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#787DCF
RGBrgb(120, 125, 207)
HSLhsl(237, 48%, 64%)
HSVhsv(237, 42%, 81%)
CMYKcmyk(42%, 39.6%, 0%, 18.8%)
CIE-LABlab(55.24, 18.90, -43.03)
CIE-LCHlch(55.24, 47.00, 293.72°)
OKLaboklab(62.13% 0.0203 -0.1212)
OKLCHoklch(62.13% 0.123 279.5)
XYZxyz(26.3385, 23.1641, 62.1027)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DCF #CFCA78
analogous
#78A9CF #787DCF #9F78CF
triadic
#787DCF #CF787D #7DCF78
tetradic
#787DCF #CF78A9 #CFCA78 #78CF9F
square
#787DCF #CF78A9 #CFCA78 #78CF9F
split-complementary
#787DCF #CF9F78 #A9CF78
monochromatic
#363B97 #4B52BF #787DCF #A5A8DF #D2D4EF

Accessibility & contrast

On white

3.73
#787DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#787DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DCF
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DCF#FFFFFF#000000##000000
##787DCF1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6088D2
Deuteranopia (green-blind)
#5A81CD
Tritanopia (blue-blind)
#5D8D9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787dcf;
/* rgb */ color: rgb(120, 125, 207);
/* oklch */ color: oklch(62.1% 0.123 279.5);
Tailwind
colors: {
  custom: {
    50: '#a3a2de',
    500: '#787dcf',
    950: '#000000',
  },
}
SCSS
$custom: #787dcf;
$custom-light: #a3a2de;
$custom-dark: #000000;
JSON
{
  "hex": "#787dcf",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 207
  },
  "hsl": {
    "h": 236.552,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62134,
    "c": 0.12292,
    "h": 279.5
  },
  "luminance": 0.23165
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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