#787CB3#787CB3

#787CB3 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.5% C 0.083 H 280.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#787CB3
RGBrgb(120, 124, 179)
HSLhsl(236, 28%, 59%)
HSVhsv(236, 33%, 70%)
CMYKcmyk(33%, 30.7%, 0%, 29.8%)
CIE-LABlab(53.67, 11.69, -29.52)
CIE-LCHlch(53.67, 31.75, 291.59°)
OKLaboklab(60.49% 0.015 -0.0821)
OKLCHoklch(60.49% 0.083 280.4)
XYZxyz(23.0878, 21.6623, 45.6039)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CB3 #B3AF78
analogous
#7899B3 #787CB3 #9178B3
triadic
#787CB3 #B3787C #7CB378
tetradic
#787CB3 #B37899 #B3AF78 #78B391
square
#787CB3 #B37899 #B3AF78 #78B391
split-complementary
#787CB3 #B39178 #99B378
monochromatic
#404371 #565A98 #787CB3 #9FA2C9 #C6C8DF

Accessibility & contrast

On white

3.94
#787CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#787CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CB3
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CB3#FFFFFF#000000##000000
##787CB31.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B82B5
Deuteranopia (green-blind)
#687EB2
Tritanopia (blue-blind)
#688690
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787cb3;
/* rgb */ color: rgb(120, 124, 179);
/* oklch */ color: oklch(60.5% 0.083 280.4);
Tailwind
colors: {
  custom: {
    50: '#a0a1ca',
    500: '#787cb3',
    950: '#000000',
  },
}
SCSS
$custom: #787cb3;
$custom-light: #a0a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787cb3",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 179
  },
  "hsl": {
    "h": 235.932,
    "s": 27.962,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60494,
    "c": 0.08348,
    "h": 280.4
  },
  "luminance": 0.21663
}

Semantic roles & 50–950 ramp

primary
#787CB3
secondary
#CFCDB8
accent
#BE64C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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