#787FE4#787FE4

#787FE4 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.7% C 0.150 H 278.3°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#787FE4
RGBrgb(120, 127, 228)
HSLhsl(236, 67%, 68%)
HSVhsv(236, 47%, 89%)
CMYKcmyk(47.4%, 44.3%, 0%, 10.6%)
CIE-LABlab(56.85, 23.88, -52.28)
CIE-LCHlch(56.85, 57.48, 294.55°)
OKLaboklab(63.72% 0.0215 -0.1483)
OKLCHoklch(63.72% 0.15 278.3)
XYZxyz(29.3344, 24.7717, 76.6195)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FE4 #E4DD78
analogous
#78B5E4 #787FE4 #A778E4
triadic
#787FE4 #E4787F #7FE478
tetradic
#787FE4 #E478B5 #E4DD78 #78E4A7
square
#787FE4 #E478B5 #E4DD78 #78E4A7
split-complementary
#787FE4 #E4A778 #B5E478
monochromatic
#262FBC #454FDA #787FE4 #ABAFEE #DEE0F8

Accessibility & contrast

On white

3.53
#787FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#787FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FE4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FE4#FFFFFF#000000##000000
##787FE41.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#568DE8
Deuteranopia (green-blind)
#4D84E2
Tritanopia (blue-blind)
#5094A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787fe4;
/* rgb */ color: rgb(120, 127, 228);
/* oklch */ color: oklch(63.7% 0.150 278.3);
Tailwind
colors: {
  custom: {
    50: '#a5a4ed',
    500: '#787fe4',
    950: '#000000',
  },
}
SCSS
$custom: #787fe4;
$custom-light: #a5a4ed;
$custom-dark: #000000;
JSON
{
  "hex": "#787fe4",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 228
  },
  "hsl": {
    "h": 236.111,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6372,
    "c": 0.14982,
    "h": 278.3
  },
  "luminance": 0.24773
}

Semantic roles & 50–950 ramp

primary
#787FE4
secondary
#ECEACC
accent
#C317CF
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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