#787EB4#787EB4

#787EB4 is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.0% C 0.082 H 278.8°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#787EB4
RGBrgb(120, 126, 180)
HSLhsl(234, 29%, 59%)
HSVhsv(234, 33%, 71%)
CMYKcmyk(33.3%, 30%, 0%, 29.4%)
CIE-LABlab(54.25, 10.77, -29.19)
CIE-LCHlch(54.25, 31.12, 290.25°)
OKLaboklab(60.96% 0.0125 -0.0812)
OKLCHoklch(60.96% 0.082 278.8)
XYZxyz(23.4425, 22.2093, 46.2228)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EB4 #B4AE78
analogous
#789CB4 #787EB4 #9078B4
triadic
#787EB4 #B4787E #7EB478
tetradic
#787EB4 #B4789C #B4AE78 #78B490
square
#787EB4 #B4789C #B4AE78 #78B490
split-complementary
#787EB4 #B49078 #9CB478
monochromatic
#3F4572 #555C9A #787EB4 #9FA4CA #C7C9E0

Accessibility & contrast

On white

3.86
#787EB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#787EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EB4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EB4#FFFFFF#000000##000000
##787EB41.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E84B6
Deuteranopia (green-blind)
#6A80B3
Tritanopia (blue-blind)
#688891
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787eb4;
/* rgb */ color: rgb(120, 126, 180);
/* oklch */ color: oklch(61.0% 0.082 278.8);
Tailwind
colors: {
  custom: {
    50: '#a0a3ca',
    500: '#787eb4',
    950: '#000000',
  },
}
SCSS
$custom: #787eb4;
$custom-light: #a0a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787eb4",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 180
  },
  "hsl": {
    "h": 234,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60957,
    "c": 0.08213,
    "h": 278.8
  },
  "luminance": 0.2221
}

Semantic roles & 50–950 ramp

primary
#787EB4
secondary
#D0CDB8
accent
#BB63C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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