#787BCF#787BCF

#787BCF is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.7% C 0.126 H 280.5°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#787BCF
RGBrgb(120, 123, 207)
HSLhsl(238, 48%, 64%)
HSVhsv(238, 42%, 81%)
CMYKcmyk(42%, 40.6%, 0%, 18.8%)
CIE-LABlab(54.72, 20.10, -43.85)
CIE-LCHlch(54.72, 48.24, 294.62°)
OKLaboklab(61.74% 0.0229 -0.1236)
OKLCHoklch(61.74% 0.126 280.5)
XYZxyz(26.0879, 22.6628, 62.0192)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCF #CFCC78
analogous
#78A7CF #787BCF #A178CF
triadic
#787BCF #CF787B #7BCF78
tetradic
#787BCF #CF78A7 #CFCC78 #78CFA1
square
#787BCF #CF78A7 #CFCC78 #78CFA1
split-complementary
#787BCF #CFA178 #A7CF78
monochromatic
#363997 #4B4FBF #787BCF #A5A7DF #D2D3EF

Accessibility & contrast

On white

3.80
#787BCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#787BCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCF
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCF#FFFFFF#000000##000000
##787BCF1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D2
Deuteranopia (green-blind)
#5880CD
Tritanopia (blue-blind)
#5D8C9B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bcf;
/* rgb */ color: rgb(120, 123, 207);
/* oklch */ color: oklch(61.7% 0.126 280.5);
Tailwind
colors: {
  custom: {
    50: '#a3a1de',
    500: '#787bcf',
    950: '#000000',
  },
}
SCSS
$custom: #787bcf;
$custom-light: #a3a1de;
$custom-dark: #000000;
JSON
{
  "hex": "#787bcf",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 207
  },
  "hsl": {
    "h": 237.931,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61738,
    "c": 0.12572,
    "h": 280.5
  },
  "luminance": 0.22664
}

Semantic roles & 50–950 ramp

primary
#787BCF
secondary
#E1E0C2
accent
#B62BBB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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