#787EB7#787EB7

#787EB7 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.1% C 0.087 H 278.9°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#787EB7
RGBrgb(120, 126, 183)
HSLhsl(234, 30%, 59%)
HSVhsv(234, 34%, 72%)
CMYKcmyk(34.4%, 31.1%, 0%, 28.2%)
CIE-LABlab(54.38, 11.58, -30.71)
CIE-LCHlch(54.38, 32.82, 290.66°)
OKLaboklab(61.1% 0.0134 -0.0855)
OKLCHoklch(61.1% 0.087 278.9)
XYZxyz(23.7514, 22.3329, 47.8498)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EB7 #B7B178
analogous
#789EB7 #787EB7 #9278B7
triadic
#787EB7 #B7787E #7EB778
tetradic
#787EB7 #B7789E #B7B178 #78B792
square
#787EB7 #B7789E #B7B178 #78B792
split-complementary
#787EB7 #B79278 #9EB778
monochromatic
#3F4476 #545B9E #787EB7 #A0A4CC #C8CAE2

Accessibility & contrast

On white

3.84
#787EB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#787EB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EB7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EB7#FFFFFF#000000##000000
##787EB71.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C84B9
Deuteranopia (green-blind)
#6980B6
Tritanopia (blue-blind)
#678992
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787eb7;
/* rgb */ color: rgb(120, 126, 183);
/* oklch */ color: oklch(61.1% 0.087 278.9);
Tailwind
colors: {
  custom: {
    50: '#a1a3cd',
    500: '#787eb7',
    950: '#000000',
  },
}
SCSS
$custom: #787eb7;
$custom-light: #a1a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787eb7",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 183
  },
  "hsl": {
    "h": 234.286,
    "s": 30.435,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61101,
    "c": 0.08657,
    "h": 278.9
  },
  "luminance": 0.22334
}

Semantic roles & 50–950 ramp

primary
#787EB7
secondary
#D2CFB9
accent
#BD61C7
background
#FAFAFC
surface
#F3F3F9
border
#CDCDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #787EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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