#787EB5#787EB5

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

Color values

HEX#787EB5
RGBrgb(120, 126, 181)
HSLhsl(234, 29%, 59%)
HSVhsv(234, 34%, 71%)
CMYKcmyk(33.7%, 30.4%, 0%, 29%)
CIE-LABlab(54.29, 11.04, -29.70)
CIE-LCHlch(54.29, 31.69, 290.39°)
OKLaboklab(61.01% 0.0128 -0.0826)
OKLCHoklch(61.01% 0.084 278.8)
XYZxyz(23.5447, 22.2502, 46.7613)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EB5 #B5AF78
analogous
#789DB5 #787EB5 #9178B5
triadic
#787EB5 #B5787E #7EB578
tetradic
#787EB5 #B5789D #B5AF78 #78B591
square
#787EB5 #B5789D #B5AF78 #78B591
split-complementary
#787EB5 #B59178 #9DB578
monochromatic
#3F4473 #555C9B #787EB5 #A0A4CB #C7CAE0

Accessibility & contrast

On white

3.85
#787EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#787EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EB5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EB5#FFFFFF#000000##000000
##787EB51.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D84B7
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#688892
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787eb5;
/* rgb */ color: rgb(120, 126, 181);
/* oklch */ color: oklch(61.0% 0.084 278.8);
Tailwind
colors: {
  custom: {
    50: '#a1a3cb',
    500: '#787eb5',
    950: '#000000',
  },
}
SCSS
$custom: #787eb5;
$custom-light: #a1a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#787eb5",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 181
  },
  "hsl": {
    "h": 234.098,
    "s": 29.187,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61005,
    "c": 0.08361,
    "h": 278.8
  },
  "luminance": 0.22251
}

Semantic roles & 50–950 ramp

primary
#787EB5
secondary
#D0CEB8
accent
#BC62C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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