#787EB2#787EB2

#787EB2 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.9% C 0.079 H 278.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#787EB2
RGBrgb(120, 126, 178)
HSLhsl(234, 27%, 58%)
HSVhsv(234, 33%, 70%)
CMYKcmyk(32.6%, 29.2%, 0%, 30.2%)
CIE-LABlab(54.16, 10.23, -28.18)
CIE-LCHlch(54.16, 29.98, 289.96°)
OKLaboklab(60.86% 0.012 -0.0782)
OKLCHoklch(60.86% 0.079 278.7)
XYZxyz(23.2402, 22.1284, 45.1576)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EB2 #B2AC78
analogous
#789BB2 #787EB2 #8F78B2
triadic
#787EB2 #B2787E #7EB278
tetradic
#787EB2 #B2789B #B2AC78 #78B28F
square
#787EB2 #B2789B #B2AC78 #78B28F
split-complementary
#787EB2 #B28F78 #9BB278
monochromatic
#404570 #565D97 #787EB2 #9FA3C8 #C6C8DE

Accessibility & contrast

On white

3.87
#787EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#787EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EB2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EB2#FFFFFF#000000##000000
##787EB21.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E84B4
Deuteranopia (green-blind)
#6B7FB1
Tritanopia (blue-blind)
#698890
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787eb2;
/* rgb */ color: rgb(120, 126, 178);
/* oklch */ color: oklch(60.9% 0.079 278.7);
Tailwind
colors: {
  custom: {
    50: '#a0a3c9',
    500: '#787eb2',
    950: '#000000',
  },
}
SCSS
$custom: #787eb2;
$custom-light: #a0a3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#787eb2",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 178
  },
  "hsl": {
    "h": 233.793,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60863,
    "c": 0.07916,
    "h": 278.7
  },
  "luminance": 0.22129
}

Semantic roles & 50–950 ramp

primary
#787EB2
secondary
#CECCB7
accent
#BA64C4
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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