#787BD3#787BD3

#787BD3 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.131 H 280.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#787BD3
RGBrgb(120, 123, 211)
HSLhsl(238, 51%, 65%)
HSVhsv(238, 43%, 83%)
CMYKcmyk(43.1%, 41.7%, 0%, 17.3%)
CIE-LABlab(54.93, 21.26, -45.79)
CIE-LCHlch(54.93, 50.48, 294.90°)
OKLaboklab(61.96% 0.0236 -0.1293)
OKLCHoklch(61.96% 0.131 280.4)
XYZxyz(26.5831, 22.8609, 64.6273)
Luminance0.2286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BD3 #D3D078
analogous
#78A9D3 #787BD3 #A378D3
triadic
#787BD3 #D3787B #7BD378
tetradic
#787BD3 #D378A9 #D3D078 #78D3A3
square
#787BD3 #D378A9 #D3D078 #78D3A3
split-complementary
#787BD3 #D3A378 #A9D378
monochromatic
#33379D #4A4EC4 #787BD3 #A6A8E2 #D4D5F1

Accessibility & contrast

On white

3.77
#787BD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#787BD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BD3
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BD3#FFFFFF#000000##000000
##787BD31.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B87D6
Deuteranopia (green-blind)
#5580D1
Tritanopia (blue-blind)
#5B8D9D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bd3;
/* rgb */ color: rgb(120, 123, 211);
/* oklch */ color: oklch(62.0% 0.131 280.4);
Tailwind
colors: {
  custom: {
    50: '#a3a1e1',
    500: '#787bd3',
    950: '#000000',
  },
}
SCSS
$custom: #787bd3;
$custom-light: #a3a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787bd3",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 211
  },
  "hsl": {
    "h": 238.022,
    "s": 50.838,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61962,
    "c": 0.13142,
    "h": 280.4
  },
  "luminance": 0.22862
}

Semantic roles & 50–950 ramp

primary
#787BD3
secondary
#E3E2C4
accent
#B927BE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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