#787CEF#787CEF

#787CEF is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.8% C 0.169 H 279.0°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#787CEF
RGBrgb(120, 124, 239)
HSLhsl(238, 79%, 70%)
HSVhsv(238, 50%, 94%)
CMYKcmyk(49.8%, 48.1%, 0%, 6.3%)
CIE-LABlab(56.72, 28.97, -58.62)
CIE-LCHlch(56.72, 65.39, 296.29°)
OKLaboklab(63.82% 0.0263 -0.1669)
OKLCHoklch(63.82% 0.169 279)
XYZxyz(30.5286, 24.6386, 84.7917)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CEF #EFEB78
analogous
#78B8EF #787CEF #AF78EF
triadic
#787CEF #EF787C #7CEF78
tetradic
#787CEF #EF78B8 #EFEB78 #78EFAF
square
#787CEF #EF78B8 #EFEB78 #78EFAF
split-complementary
#787CEF #EFAF78 #B8EF78
monochromatic
#191FD4 #4147E9 #787CEF #AFB1F5 #E4E4FC

Accessibility & contrast

On white

3.54
#787CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#787CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CEF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CEF#FFFFFF#000000##000000
##787CEF1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#3C84EC
Tritanopia (blue-blind)
#4995AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787cef;
/* rgb */ color: rgb(120, 124, 239);
/* oklch */ color: oklch(63.8% 0.169 279.0);
Tailwind
colors: {
  custom: {
    50: '#a6a1f5',
    500: '#787cef',
    950: '#000000',
  },
}
SCSS
$custom: #787cef;
$custom-light: #a6a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787cef",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 237.983,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.63821,
    "c": 0.16895,
    "h": 279
  },
  "luminance": 0.2464
}

Semantic roles & 50–950 ramp

primary
#787CEF
secondary
#F2F1D1
accent
#D40ADB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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