#787DC8#787DC8

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

Color values

HEX#787DC8
RGBrgb(120, 125, 200)
HSLhsl(236, 42%, 63%)
HSVhsv(236, 40%, 78%)
CMYKcmyk(40%, 37.5%, 0%, 21.6%)
CIE-LABlab(54.90, 16.90, -39.61)
CIE-LCHlch(54.90, 43.06, 293.11°)
OKLaboklab(61.76% 0.0189 -0.1113)
OKLCHoklch(61.76% 0.113 279.6)
XYZxyz(25.5016, 22.8294, 57.6952)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DC8 #C8C378
analogous
#78A5C8 #787DC8 #9B78C8
triadic
#787DC8 #C8787D #7DC878
tetradic
#787DC8 #C878A5 #C8C378 #78C89B
square
#787DC8 #C878A5 #C8C378 #78C89B
split-complementary
#787DC8 #C89B78 #A5C878
monochromatic
#393E8C #4D53B6 #787DC8 #A3A7DA #CFD1EB

Accessibility & contrast

On white

3.77
#787DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#787DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DC8
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DC8#FFFFFF#000000##000000
##787DC81.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6486CB
Deuteranopia (green-blind)
#5F81C6
Tritanopia (blue-blind)
#608C99
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787dc8;
/* rgb */ color: rgb(120, 125, 200);
/* oklch */ color: oklch(61.8% 0.113 279.6);
Tailwind
colors: {
  custom: {
    50: '#a2a2d9',
    500: '#787dc8',
    950: '#000000',
  },
}
SCSS
$custom: #787dc8;
$custom-light: #a2a2d9;
$custom-dark: #000000;
JSON
{
  "hex": "#787dc8",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 200
  },
  "hsl": {
    "h": 236.25,
    "s": 42.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61757,
    "c": 0.11285,
    "h": 279.6
  },
  "luminance": 0.2283
}

Semantic roles & 50–950 ramp

primary
#787DC8
secondary
#DCDBBF
accent
#AD30B5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #787DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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