#787FD4#787FD4

#787FD4 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.8% C 0.127 H 278.5°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#787FD4
RGBrgb(120, 127, 212)
HSLhsl(235, 52%, 65%)
HSVhsv(235, 43%, 83%)
CMYKcmyk(43.4%, 40.1%, 0%, 16.9%)
CIE-LABlab(56.01, 19.16, -44.64)
CIE-LCHlch(56.01, 48.58, 293.23°)
OKLaboklab(62.81% 0.0188 -0.1259)
OKLCHoklch(62.81% 0.127 278.5)
XYZxyz(27.2152, 23.9240, 65.4584)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD4 #D4CD78
analogous
#78ADD4 #787FD4 #9F78D4
triadic
#787FD4 #D4787F #7FD478
tetradic
#787FD4 #D478AD #D4CD78 #78D49F
square
#787FD4 #D478AD #D4CD78 #78D49F
split-complementary
#787FD4 #D49F78 #ADD478
monochromatic
#333B9F #4A53C5 #787FD4 #A6ABE3 #D5D7F2

Accessibility & contrast

On white

3.63
#787FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#787FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD4#FFFFFF#000000##000000
##787FD41.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD7
Deuteranopia (green-blind)
#5A83D2
Tritanopia (blue-blind)
#5A909F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787fd4;
/* rgb */ color: rgb(120, 127, 212);
/* oklch */ color: oklch(62.8% 0.127 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4e1',
    500: '#787fd4',
    950: '#000000',
  },
}
SCSS
$custom: #787fd4;
$custom-light: #a3a4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd4",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 212
  },
  "hsl": {
    "h": 235.435,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62805,
    "c": 0.1273,
    "h": 278.5
  },
  "luminance": 0.23925
}

Semantic roles & 50–950 ramp

primary
#787FD4
secondary
#E3E1C4
accent
#B326BF
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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