#787BD4#787BD4

#787BD4 is a light, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.133 H 280.3°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#787BD4
RGBrgb(120, 123, 212)
HSLhsl(238, 52%, 65%)
HSVhsv(238, 43%, 83%)
CMYKcmyk(43.4%, 42%, 0%, 16.9%)
CIE-LABlab(54.98, 21.55, -46.27)
CIE-LCHlch(54.98, 51.04, 294.97°)
OKLaboklab(62.02% 0.0238 -0.1307)
OKLCHoklch(62.02% 0.133 280.3)
XYZxyz(26.7088, 22.9112, 65.2896)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BD4 #D4D178
analogous
#78A9D4 #787BD4 #A378D4
triadic
#787BD4 #D4787B #7BD478
tetradic
#787BD4 #D478A9 #D4D178 #78D4A3
square
#787BD4 #D478A9 #D4D178 #78D4A3
split-complementary
#787BD4 #D4A378 #A9D478
monochromatic
#33369F #4A4EC5 #787BD4 #A6A8E3 #D5D6F2

Accessibility & contrast

On white

3.76
#787BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#787BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BD4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BD4#FFFFFF#000000##000000
##787BD41.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A87D7
Deuteranopia (green-blind)
#5480D2
Tritanopia (blue-blind)
#5A8D9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787bd4;
/* rgb */ color: rgb(120, 123, 212);
/* oklch */ color: oklch(62.0% 0.133 280.3);
Tailwind
colors: {
  custom: {
    50: '#a3a1e1',
    500: '#787bd4',
    950: '#000000',
  },
}
SCSS
$custom: #787bd4;
$custom-light: #a3a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787bd4",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 212
  },
  "hsl": {
    "h": 238.043,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62018,
    "c": 0.13284,
    "h": 280.3
  },
  "luminance": 0.22912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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