#787FEB#787FEB

#787FEB is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.1% C 0.160 H 278.1°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#787FEB
RGBrgb(120, 127, 235)
HSLhsl(236, 74%, 70%)
HSVhsv(236, 49%, 92%)
CMYKcmyk(48.9%, 46%, 0%, 7.8%)
CIE-LABlab(57.24, 25.98, -55.57)
CIE-LCHlch(57.24, 61.34, 295.05°)
OKLaboklab(64.14% 0.0225 -0.1579)
OKLCHoklch(64.14% 0.16 278.1)
XYZxyz(30.3259, 25.1682, 81.8412)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FEB #EBE478
analogous
#78B9EB #787FEB #AB78EB
triadic
#787FEB #EB787F #7FEB78
tetradic
#787FEB #EB78B9 #EBE478 #78EBAB
square
#787FEB #EB78B9 #EBE478 #78EBAB
split-complementary
#787FEB #EBAB78 #B9EB78
monochromatic
#1E29CB #434CE3 #787FEB #ADB2F3 #E3E4FB

Accessibility & contrast

On white

3.48
#787FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#787FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FEB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FEB#FFFFFF#000000##000000
##787FEB1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#4785E9
Tritanopia (blue-blind)
#4B96AA
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787feb;
/* rgb */ color: rgb(120, 127, 235);
/* oklch */ color: oklch(64.1% 0.160 278.1);
Tailwind
colors: {
  custom: {
    50: '#a5a4f2',
    500: '#787feb',
    950: '#000000',
  },
}
SCSS
$custom: #787feb;
$custom-light: #a5a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#787feb",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 236.348,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64139,
    "c": 0.1595,
    "h": 278.1
  },
  "luminance": 0.2517
}

Semantic roles & 50–950 ramp

primary
#787FEB
secondary
#F0EECF
accent
#CA0FD6
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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