#787BD2#787BD2

#787BD2 is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.9% C 0.130 H 280.4°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#787BD2
RGBrgb(120, 123, 210)
HSLhsl(238, 50%, 65%)
HSVhsv(238, 43%, 82%)
CMYKcmyk(42.9%, 41.4%, 0%, 17.6%)
CIE-LABlab(54.88, 20.97, -45.31)
CIE-LCHlch(54.88, 49.92, 294.83°)
OKLaboklab(61.91% 0.0234 -0.1279)
OKLCHoklch(61.91% 0.13 280.4)
XYZxyz(26.4581, 22.8109, 63.9691)
Luminance0.2281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BD2 #D2CF78
analogous
#78A8D2 #787BD2 #A278D2
triadic
#787BD2 #D2787B #7BD278
tetradic
#787BD2 #D278A8 #D2CF78 #78D2A2
square
#787BD2 #D278A8 #D2CF78 #78D2A2
split-complementary
#787BD2 #D2A278 #A8D278
monochromatic
#34379C #4A4EC3 #787BD2 #A6A8E1 #D4D5F1

Accessibility & contrast

On white

3.78
#787BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#787BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BD2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BD2#FFFFFF#000000##000000
##787BD21.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B87D5
Deuteranopia (green-blind)
#5680D0
Tritanopia (blue-blind)
#5B8D9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bd2;
/* rgb */ color: rgb(120, 123, 210);
/* oklch */ color: oklch(61.9% 0.130 280.4);
Tailwind
colors: {
  custom: {
    50: '#a3a1e0',
    500: '#787bd2',
    950: '#000000',
  },
}
SCSS
$custom: #787bd2;
$custom-light: #a3a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#787bd2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 238,
    "s": 50,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61905,
    "c": 0.13,
    "h": 280.4
  },
  "luminance": 0.22812
}

Semantic roles & 50–950 ramp

primary
#787BD2
secondary
#E2E1C3
accent
#B828BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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