#787BBA#787BBA

#787BBA is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.6% C 0.095 H 281.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#787BBA
RGBrgb(120, 123, 186)
HSLhsl(237, 32%, 60%)
HSVhsv(237, 35%, 73%)
CMYKcmyk(35.5%, 33.9%, 0%, 27.1%)
CIE-LABlab(53.71, 14.18, -33.47)
CIE-LCHlch(53.71, 36.35, 292.96°)
OKLaboklab(60.63% 0.0183 -0.0935)
OKLCHoklch(60.63% 0.095 281.1)
XYZxyz(23.6891, 21.7034, 49.3859)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BBA #BAB778
analogous
#789CBA #787BBA #9678BA
triadic
#787BBA #BA787B #7BBA78
tetradic
#787BBA #BA789C #BAB778 #78BA96
square
#787BBA #BA789C #BAB778 #78BA96
split-complementary
#787BBA #BA9678 #9CBA78
monochromatic
#3E417A #5356A2 #787BBA #A0A3CF #C9CAE3

Accessibility & contrast

On white

3.93
#787BBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#787BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BBA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BBA#FFFFFF#000000##000000
##787BBA1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6783BD
Deuteranopia (green-blind)
#647EB8
Tritanopia (blue-blind)
#668792
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787bba;
/* rgb */ color: rgb(120, 123, 186);
/* oklch */ color: oklch(60.6% 0.095 281.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1cf',
    500: '#787bba',
    950: '#000000',
  },
}
SCSS
$custom: #787bba;
$custom-light: #a1a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787bba",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 186
  },
  "hsl": {
    "h": 237.273,
    "s": 32.353,
    "l": 60
  },
  "oklch": {
    "l": 0.6063,
    "c": 0.09526,
    "h": 281.1
  },
  "luminance": 0.21704
}

Semantic roles & 50–950 ramp

primary
#787BBA
secondary
#D4D2BA
accent
#C45FC9
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #787BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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