#787BB3#787BB3

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

Color values

HEX#787BB3
RGBrgb(120, 123, 179)
HSLhsl(237, 28%, 59%)
HSVhsv(237, 33%, 70%)
CMYKcmyk(33%, 31.3%, 0%, 29.8%)
CIE-LABlab(53.40, 12.28, -29.94)
CIE-LCHlch(53.40, 32.36, 292.30°)
OKLaboklab(60.29% 0.0164 -0.0833)
OKLCHoklch(60.29% 0.085 281.2)
XYZxyz(22.9631, 21.4130, 45.5623)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB3 #B3B078
analogous
#7898B3 #787BB3 #9278B3
triadic
#787BB3 #B3787B #7BB378
tetradic
#787BB3 #B37898 #B3B078 #78B392
square
#787BB3 #B37898 #B3B078 #78B392
split-complementary
#787BB3 #B39278 #98B378
monochromatic
#404271 #565998 #787BB3 #9FA1C9 #C6C8DF

Accessibility & contrast

On white

3.98
#787BB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#787BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BB3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BB3#FFFFFF#000000##000000
##787BB31.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A82B5
Deuteranopia (green-blind)
#677EB2
Tritanopia (blue-blind)
#69858F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787bb3;
/* rgb */ color: rgb(120, 123, 179);
/* oklch */ color: oklch(60.3% 0.085 281.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1ca',
    500: '#787bb3',
    950: '#000000',
  },
}
SCSS
$custom: #787bb3;
$custom-light: #a0a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb3",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 179
  },
  "hsl": {
    "h": 236.949,
    "s": 27.962,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.08491,
    "h": 281.2
  },
  "luminance": 0.21414
}

Semantic roles & 50–950 ramp

primary
#787BB3
secondary
#CFCEB8
accent
#BF64C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #787BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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