#787DD4#787DD4

#787DD4 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.4% C 0.130 H 279.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#787DD4
RGBrgb(120, 125, 212)
HSLhsl(237, 52%, 65%)
HSVhsv(237, 43%, 83%)
CMYKcmyk(43.4%, 41%, 0%, 16.9%)
CIE-LABlab(55.49, 20.35, -45.46)
CIE-LCHlch(55.49, 49.81, 294.12°)
OKLaboklab(62.41% 0.0213 -0.1283)
OKLCHoklch(62.41% 0.13 279.4)
XYZxyz(26.9595, 23.4125, 65.3731)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DD4 #D4CF78
analogous
#78ABD4 #787DD4 #A178D4
triadic
#787DD4 #D4787D #7DD478
tetradic
#787DD4 #D478AB #D4CF78 #78D4A1
square
#787DD4 #D478AB #D4CF78 #78D4A1
split-complementary
#787DD4 #D4A178 #ABD478
monochromatic
#33399F #4A50C5 #787DD4 #A6AAE3 #D5D6F2

Accessibility & contrast

On white

3.70
#787DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#787DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DD4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DD4#FFFFFF#000000##000000
##787DD41.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D88D7
Deuteranopia (green-blind)
#5782D2
Tritanopia (blue-blind)
#5A8F9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787dd4;
/* rgb */ color: rgb(120, 125, 212);
/* oklch */ color: oklch(62.4% 0.130 279.4);
Tailwind
colors: {
  custom: {
    50: '#a3a2e1',
    500: '#787dd4',
    950: '#000000',
  },
}
SCSS
$custom: #787dd4;
$custom-light: #a3a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787dd4",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 212
  },
  "hsl": {
    "h": 236.739,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6241,
    "c": 0.13006,
    "h": 279.4
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#787DD4
secondary
#E3E2C4
accent
#B726BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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