#787DC7#787DC7

#787DC7 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.7% C 0.111 H 279.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#787DC7
RGBrgb(120, 125, 199)
HSLhsl(236, 41%, 63%)
HSVhsv(236, 40%, 78%)
CMYKcmyk(39.7%, 37.2%, 0%, 22%)
CIE-LABlab(54.85, 16.62, -39.11)
CIE-LCHlch(54.85, 42.50, 293.02°)
OKLaboklab(61.7% 0.0187 -0.1098)
OKLCHoklch(61.7% 0.111 279.6)
XYZxyz(25.3851, 22.7828, 57.0817)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DC7 #C7C278
analogous
#78A4C7 #787DC7 #9B78C7
triadic
#787DC7 #C7787D #7DC778
tetradic
#787DC7 #C778A4 #C7C278 #78C79B
square
#787DC7 #C778A4 #C7C278 #78C79B
split-complementary
#787DC7 #C79B78 #A4C778
monochromatic
#3A3F8B #4D53B5 #787DC7 #A3A7D9 #CFD0EB

Accessibility & contrast

On white

3.78
#787DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#787DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DC7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DC7#FFFFFF#000000##000000
##787DC71.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6486CA
Deuteranopia (green-blind)
#5F80C5
Tritanopia (blue-blind)
#608C98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787dc7;
/* rgb */ color: rgb(120, 125, 199);
/* oklch */ color: oklch(61.7% 0.111 279.6);
Tailwind
colors: {
  custom: {
    50: '#a2a2d8',
    500: '#787dc7',
    950: '#000000',
  },
}
SCSS
$custom: #787dc7;
$custom-light: #a2a2d8;
$custom-dark: #000000;
JSON
{
  "hex": "#787dc7",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 236.203,
    "s": 41.361,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61704,
    "c": 0.11141,
    "h": 279.6
  },
  "luminance": 0.22784
}

Semantic roles & 50–950 ramp

primary
#787DC7
secondary
#DCDABF
accent
#AC31B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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