#787EE5#787EE5

#787EE5 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.6% C 0.153 H 278.6°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#787EE5
RGBrgb(120, 126, 229)
HSLhsl(237, 68%, 68%)
HSVhsv(237, 48%, 90%)
CMYKcmyk(47.6%, 45%, 0%, 10.2%)
CIE-LABlab(56.65, 24.77, -53.16)
CIE-LCHlch(56.65, 58.65, 294.99°)
OKLaboklab(63.59% 0.0228 -0.1508)
OKLCHoklch(63.59% 0.153 278.6)
XYZxyz(29.3451, 24.5703, 77.3098)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EE5 #E5DF78
analogous
#78B4E5 #787EE5 #A878E5
triadic
#787EE5 #E5787E #7EE578
tetradic
#787EE5 #E578B4 #E5DF78 #78E5A8
square
#787EE5 #E578B4 #E5DF78 #78E5A8
split-complementary
#787EE5 #E5A878 #B4E578
monochromatic
#252DBE #454DDB #787EE5 #ABAFEF #DFE0F9

Accessibility & contrast

On white

3.55
#787EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#787EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EE5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EE5#FFFFFF#000000##000000
##787EE51.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#548CE9
Deuteranopia (green-blind)
#4B84E3
Tritanopia (blue-blind)
#5094A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787ee5;
/* rgb */ color: rgb(120, 126, 229);
/* oklch */ color: oklch(63.6% 0.153 278.6);
Tailwind
colors: {
  custom: {
    50: '#a5a3ee',
    500: '#787ee5',
    950: '#000000',
  },
}
SCSS
$custom: #787ee5;
$custom-light: #a5a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#787ee5",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 229
  },
  "hsl": {
    "h": 236.697,
    "s": 67.702,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63587,
    "c": 0.15256,
    "h": 278.6
  },
  "luminance": 0.24572
}

Semantic roles & 50–950 ramp

primary
#787EE5
secondary
#EDEBCC
accent
#C516D0
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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