#787BB4#787BB4

#787BB4 is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.3% C 0.086 H 281.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#787BB4
RGBrgb(120, 123, 180)
HSLhsl(237, 29%, 59%)
HSVhsv(237, 33%, 71%)
CMYKcmyk(33.3%, 31.7%, 0%, 29.4%)
CIE-LABlab(53.44, 12.55, -30.45)
CIE-LCHlch(53.44, 32.93, 292.40°)
OKLaboklab(60.34% 0.0167 -0.0848)
OKLCHoklch(60.34% 0.086 281.2)
XYZxyz(23.0646, 21.4536, 46.0969)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB4 #B4B178
analogous
#7899B4 #787BB4 #9378B4
triadic
#787BB4 #B4787B #7BB478
tetradic
#787BB4 #B47899 #B4B178 #78B493
square
#787BB4 #B47899 #B4B178 #78B493
split-complementary
#787BB4 #B49378 #99B478
monochromatic
#3F4272 #55599A #787BB4 #9FA1CA #C7C8E0

Accessibility & contrast

On white

3.97
#787BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#787BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BB4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BB4#FFFFFF#000000##000000
##787BB41.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A82B6
Deuteranopia (green-blind)
#677EB3
Tritanopia (blue-blind)
#68868F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787bb4;
/* rgb */ color: rgb(120, 123, 180);
/* oklch */ color: oklch(60.3% 0.086 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1ca',
    500: '#787bb4',
    950: '#000000',
  },
}
SCSS
$custom: #787bb4;
$custom-light: #a1a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb4",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 180
  },
  "hsl": {
    "h": 237,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60335,
    "c": 0.08639,
    "h": 281.2
  },
  "luminance": 0.21454
}

Semantic roles & 50–950 ramp

primary
#787BB4
secondary
#D0CFB8
accent
#C063C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #787BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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