#787CB7#787CB7

#787CB7 is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.7% C 0.089 H 280.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#787CB7
RGBrgb(120, 124, 183)
HSLhsl(236, 30%, 59%)
HSVhsv(236, 34%, 72%)
CMYKcmyk(34.4%, 32.2%, 0%, 28.2%)
CIE-LABlab(53.84, 12.77, -31.55)
CIE-LCHlch(53.84, 34.03, 292.03°)
OKLaboklab(60.69% 0.0161 -0.0879)
OKLCHoklch(60.69% 0.089 280.4)
XYZxyz(23.4982, 21.8265, 47.7654)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB7 #B7B378
analogous
#789CB7 #787CB7 #9478B7
triadic
#787CB7 #B7787C #7CB778
tetradic
#787CB7 #B7789C #B7B378 #78B794
square
#787CB7 #B7789C #B7B378 #78B794
split-complementary
#787CB7 #B79478 #9CB778
monochromatic
#3F4276 #54599E #787CB7 #A0A3CC #C8C9E2

Accessibility & contrast

On white

3.91
#787CB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#787CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB7#FFFFFF#000000##000000
##787CB71.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A83B9
Deuteranopia (green-blind)
#677FB6
Tritanopia (blue-blind)
#678791
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787cb7;
/* rgb */ color: rgb(120, 124, 183);
/* oklch */ color: oklch(60.7% 0.089 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#787cb7',
    950: '#000000',
  },
}
SCSS
$custom: #787cb7;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb7",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 183
  },
  "hsl": {
    "h": 236.19,
    "s": 30.435,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60687,
    "c": 0.0894,
    "h": 280.4
  },
  "luminance": 0.21827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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