#787EBE#787EBE

#787EBE is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.4% C 0.097 H 279.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#787EBE
RGBrgb(120, 126, 190)
HSLhsl(235, 35%, 61%)
HSVhsv(235, 37%, 75%)
CMYKcmyk(36.8%, 33.7%, 0%, 25.5%)
CIE-LABlab(54.69, 13.50, -34.23)
CIE-LCHlch(54.69, 36.80, 291.52°)
OKLaboklab(61.45% 0.0152 -0.0957)
OKLCHoklch(61.45% 0.097 279)
XYZxyz(24.4982, 22.6316, 51.7828)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EBE #BEB878
analogous
#78A1BE #787EBE #9578BE
triadic
#787EBE #BE787E #7EBE78
tetradic
#787EBE #BE78A1 #BEB878 #78BE95
square
#787EBE #BE78A1 #BEB878 #78BE95
split-complementary
#787EBE #BE9578 #A1BE78
monochromatic
#3D437F #5158A8 #787EBE #A1A5D2 #CBCDE6

Accessibility & contrast

On white

3.80
#787EBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#787EBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EBE
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EBE#FFFFFF#000000##000000
##787EBE1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A86C1
Deuteranopia (green-blind)
#6580BC
Tritanopia (blue-blind)
#648A95
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ebe;
/* rgb */ color: rgb(120, 126, 190);
/* oklch */ color: oklch(61.4% 0.097 279.0);
Tailwind
colors: {
  custom: {
    50: '#a1a3d2',
    500: '#787ebe',
    950: '#000000',
  },
}
SCSS
$custom: #787ebe;
$custom-light: #a1a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ebe",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 190
  },
  "hsl": {
    "h": 234.857,
    "s": 35,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61445,
    "c": 0.09688,
    "h": 279
  },
  "luminance": 0.22632
}

Semantic roles & 50–950 ramp

primary
#787EBE
secondary
#D6D4BC
accent
#A438AE
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #787EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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