#787FD5#787FD5

#787FD5 is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.9% C 0.129 H 278.5°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#787FD5
RGBrgb(120, 127, 213)
HSLhsl(235, 53%, 65%)
HSVhsv(235, 44%, 84%)
CMYKcmyk(43.7%, 40.4%, 0%, 16.5%)
CIE-LABlab(56.06, 19.45, -45.12)
CIE-LCHlch(56.06, 49.14, 293.32°)
OKLaboklab(62.86% 0.019 -0.1273)
OKLCHoklch(62.86% 0.129 278.5)
XYZxyz(27.3417, 23.9746, 66.1248)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD5 #D5CE78
analogous
#78ADD5 #787FD5 #9F78D5
triadic
#787FD5 #D5787F #7FD578
tetradic
#787FD5 #D578AD #D5CE78 #78D59F
square
#787FD5 #D578AD #D5CE78 #78D59F
split-complementary
#787FD5 #D59F78 #ADD578
monochromatic
#323AA1 #4953C6 #787FD5 #A7ABE4 #D5D8F2

Accessibility & contrast

On white

3.62
#787FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#787FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD5#FFFFFF#000000##000000
##787FD51.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8AD8
Deuteranopia (green-blind)
#5983D3
Tritanopia (blue-blind)
#5991A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787fd5;
/* rgb */ color: rgb(120, 127, 213);
/* oklch */ color: oklch(62.9% 0.129 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4e2',
    500: '#787fd5',
    950: '#000000',
  },
}
SCSS
$custom: #787fd5;
$custom-light: #a3a4e2;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd5",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 213
  },
  "hsl": {
    "h": 235.484,
    "s": 52.542,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62861,
    "c": 0.12873,
    "h": 278.5
  },
  "luminance": 0.23976
}

Semantic roles & 50–950 ramp

primary
#787FD5
secondary
#E4E2C5
accent
#B426C0
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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