#787BB7#787BB7

#787BB7 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.5% C 0.091 H 281.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#787BB7
RGBrgb(120, 123, 183)
HSLhsl(237, 30%, 59%)
HSVhsv(237, 34%, 72%)
CMYKcmyk(34.4%, 32.8%, 0%, 28.2%)
CIE-LABlab(53.58, 13.36, -31.96)
CIE-LCHlch(53.58, 34.65, 292.69°)
OKLaboklab(60.48% 0.0175 -0.0891)
OKLCHoklch(60.48% 0.091 281.1)
XYZxyz(23.3736, 21.5771, 47.7239)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB7 #B7B478
analogous
#789BB7 #787BB7 #9578B7
triadic
#787BB7 #B7787B #7BB778
tetradic
#787BB7 #B7789B #B7B478 #78B795
square
#787BB7 #B7789B #B7B478 #78B795
split-complementary
#787BB7 #B79578 #9BB778
monochromatic
#3F4176 #54589E #787BB7 #A0A2CC #C8C9E2

Accessibility & contrast

On white

3.95
#787BB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#787BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BB7
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BB7#FFFFFF#000000##000000
##787BB71.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6982B9
Deuteranopia (green-blind)
#667EB6
Tritanopia (blue-blind)
#678691
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787bb7;
/* rgb */ color: rgb(120, 123, 183);
/* oklch */ color: oklch(60.5% 0.091 281.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#787bb7',
    950: '#000000',
  },
}
SCSS
$custom: #787bb7;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb7",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 183
  },
  "hsl": {
    "h": 237.143,
    "s": 30.435,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60481,
    "c": 0.09083,
    "h": 281.1
  },
  "luminance": 0.21578
}

Semantic roles & 50–950 ramp

primary
#787BB7
secondary
#D2D1B9
accent
#C261C7
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #787BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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