#787BCE#787BCE

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

Color values

HEX#787BCE
RGBrgb(120, 123, 206)
HSLhsl(238, 47%, 64%)
HSVhsv(238, 42%, 81%)
CMYKcmyk(41.7%, 40.3%, 0%, 19.2%)
CIE-LABlab(54.67, 19.81, -43.36)
CIE-LCHlch(54.67, 47.68, 294.55°)
OKLaboklab(61.68% 0.0227 -0.1222)
OKLCHoklch(61.68% 0.124 280.5)
XYZxyz(25.9660, 22.6141, 61.3774)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCE #CECB78
analogous
#78A6CE #787BCE #A078CE
triadic
#787BCE #CE787B #7BCE78
tetradic
#787BCE #CE78A6 #CECB78 #78CEA0
square
#787BCE #CE78A6 #CECB78 #78CEA0
split-complementary
#787BCE #CEA078 #A6CE78
monochromatic
#363A95 #4B4FBE #787BCE #A5A7DE #D2D3EF

Accessibility & contrast

On white

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

On black

5.52
#787BCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCE
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCE#FFFFFF#000000##000000
##787BCE1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D1
Deuteranopia (green-blind)
#5980CC
Tritanopia (blue-blind)
#5D8C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bce;
/* rgb */ color: rgb(120, 123, 206);
/* oklch */ color: oklch(61.7% 0.124 280.5);
Tailwind
colors: {
  custom: {
    50: '#a3a1dd',
    500: '#787bce',
    950: '#000000',
  },
}
SCSS
$custom: #787bce;
$custom-light: #a3a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#787bce",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 206
  },
  "hsl": {
    "h": 237.907,
    "s": 46.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61683,
    "c": 0.1243,
    "h": 280.5
  },
  "luminance": 0.22615
}

Semantic roles & 50–950 ramp

primary
#787BCE
secondary
#E0DFC2
accent
#B52CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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