#787DB7#787DB7

#787DB7 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.9% C 0.088 H 279.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#787DB7
RGBrgb(120, 125, 183)
HSLhsl(235, 30%, 59%)
HSVhsv(235, 34%, 72%)
CMYKcmyk(34.4%, 31.7%, 0%, 28.2%)
CIE-LABlab(54.11, 12.17, -31.13)
CIE-LCHlch(54.11, 33.43, 291.36°)
OKLaboklab(60.89% 0.0148 -0.0867)
OKLCHoklch(60.89% 0.088 279.7)
XYZxyz(23.6242, 22.0784, 47.8074)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DB7 #B7B278
analogous
#789DB7 #787DB7 #9378B7
triadic
#787DB7 #B7787D #7DB778
tetradic
#787DB7 #B7789D #B7B278 #78B793
square
#787DB7 #B7789D #B7B278 #78B793
split-complementary
#787DB7 #B79378 #9DB778
monochromatic
#3F4376 #545A9E #787DB7 #A0A3CC #C8CAE2

Accessibility & contrast

On white

3.88
#787DB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#787DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DB7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DB7#FFFFFF#000000##000000
##787DB71.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B84B9
Deuteranopia (green-blind)
#687FB6
Tritanopia (blue-blind)
#678892
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787db7;
/* rgb */ color: rgb(120, 125, 183);
/* oklch */ color: oklch(60.9% 0.088 279.7);
Tailwind
colors: {
  custom: {
    50: '#a1a2cd',
    500: '#787db7',
    950: '#000000',
  },
}
SCSS
$custom: #787db7;
$custom-light: #a1a2cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787db7",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 183
  },
  "hsl": {
    "h": 235.238,
    "s": 30.435,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60894,
    "c": 0.08798,
    "h": 279.7
  },
  "luminance": 0.22079
}

Semantic roles & 50–950 ramp

primary
#787DB7
secondary
#D2D0B9
accent
#BF61C7
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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