#787BBB#787BBB

#787BBB is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.7% C 0.097 H 281.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#787BBB
RGBrgb(120, 123, 187)
HSLhsl(237, 33%, 60%)
HSVhsv(237, 36%, 73%)
CMYKcmyk(35.8%, 34.2%, 0%, 26.7%)
CIE-LABlab(53.76, 14.46, -33.98)
CIE-LCHlch(53.76, 36.92, 293.05°)
OKLaboklab(60.68% 0.0185 -0.0949)
OKLCHoklch(60.68% 0.097 281)
XYZxyz(23.7958, 21.7460, 49.9477)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BBB #BBB878
analogous
#789DBB #787BBB #9678BB
triadic
#787BBB #BB787B #7BBB78
tetradic
#787BBB #BB789D #BBB878 #78BB96
square
#787BBB #BB789D #BBB878 #78BB96
split-complementary
#787BBB #BB9678 #9DBB78
monochromatic
#3E417B #5256A3 #787BBB #A1A3D0 #C9CBE4

Accessibility & contrast

On white

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

On black

5.35
#787BBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BBB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BBB#FFFFFF#000000##000000
##787BBB1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787bbb;
/* rgb */ color: rgb(120, 123, 187);
/* oklch */ color: oklch(60.7% 0.097 281.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1cf',
    500: '#787bbb',
    950: '#000000',
  },
}
SCSS
$custom: #787bbb;
$custom-light: #a1a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787bbb",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 187
  },
  "hsl": {
    "h": 237.313,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6068,
    "c": 0.09673,
    "h": 281
  },
  "luminance": 0.21747
}

Semantic roles & 50–950 ramp

primary
#787BBB
secondary
#D4D3BB
accent
#A73AAC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #787BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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