#787FD3#787FD3

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

Color values

HEX#787FD3
RGBrgb(120, 127, 211)
HSLhsl(235, 51%, 65%)
HSVhsv(235, 43%, 83%)
CMYKcmyk(43.1%, 39.8%, 0%, 17.3%)
CIE-LABlab(55.96, 18.87, -44.16)
CIE-LCHlch(55.96, 48.02, 293.14°)
OKLaboklab(62.75% 0.0186 -0.1245)
OKLCHoklch(62.75% 0.126 278.5)
XYZxyz(27.0895, 23.8737, 64.7961)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD3 #D3CC78
analogous
#78ACD3 #787FD3 #9F78D3
triadic
#787FD3 #D3787F #7FD378
tetradic
#787FD3 #D378AC #D3CC78 #78D39F
square
#787FD3 #D378AC #D3CC78 #78D39F
split-complementary
#787FD3 #D39F78 #ACD378
monochromatic
#333B9D #4A53C4 #787FD3 #A6ABE2 #D4D7F1

Accessibility & contrast

On white

3.64
#787FD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#787FD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD3#FFFFFF#000000##000000
##787FD31.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD6
Deuteranopia (green-blind)
#5A83D1
Tritanopia (blue-blind)
#5A909F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787fd3;
/* rgb */ color: rgb(120, 127, 211);
/* oklch */ color: oklch(62.7% 0.126 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4e1',
    500: '#787fd3',
    950: '#000000',
  },
}
SCSS
$custom: #787fd3;
$custom-light: #a3a4e1;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd3",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 211
  },
  "hsl": {
    "h": 235.385,
    "s": 50.838,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6275,
    "c": 0.12588,
    "h": 278.5
  },
  "luminance": 0.23875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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