#787FDB#787FDB

#787FDB is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.2% C 0.137 H 278.4°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#787FDB
RGBrgb(120, 127, 219)
HSLhsl(236, 58%, 66%)
HSVhsv(236, 45%, 86%)
CMYKcmyk(45.2%, 42%, 0%, 14.1%)
CIE-LABlab(56.37, 21.21, -48.01)
CIE-LCHlch(56.37, 52.48, 293.84°)
OKLaboklab(63.2% 0.0201 -0.1357)
OKLCHoklch(63.2% 0.137 278.4)
XYZxyz(28.1174, 24.2849, 70.2100)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FDB #DBD478
analogous
#78B1DB #787FDB #A378DB
triadic
#787FDB #DB787F #7FDB78
tetradic
#787FDB #DB78B1 #DBD478 #78DBA3
square
#787FDB #DB78B1 #DBD478 #78DBA3
split-complementary
#787FDB #DBA378 #B1DB78
monochromatic
#2E36AB #4851CE #787FDB #A8ADE8 #D9DBF5

Accessibility & contrast

On white

3.59
#787FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#787FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FDB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FDB#FFFFFF#000000##000000
##787FDB1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8BDF
Deuteranopia (green-blind)
#5584D9
Tritanopia (blue-blind)
#5692A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787fdb;
/* rgb */ color: rgb(120, 127, 219);
/* oklch */ color: oklch(63.2% 0.137 278.4);
Tailwind
colors: {
  custom: {
    50: '#a4a4e6',
    500: '#787fdb',
    950: '#000000',
  },
}
SCSS
$custom: #787fdb;
$custom-light: #a4a4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#787fdb",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 235.758,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.63198,
    "c": 0.13722,
    "h": 278.4
  },
  "luminance": 0.24286
}

Semantic roles & 50–950 ramp

primary
#787FDB
secondary
#E7E5C7
accent
#BA20C5
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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