#787FE5#787FE5

#787FE5 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.8% C 0.151 H 278.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#787FE5
RGBrgb(120, 127, 229)
HSLhsl(236, 68%, 68%)
HSVhsv(236, 48%, 90%)
CMYKcmyk(47.6%, 44.5%, 0%, 10.2%)
CIE-LABlab(56.91, 24.18, -52.76)
CIE-LCHlch(56.91, 58.03, 294.62°)
OKLaboklab(63.78% 0.0216 -0.1496)
OKLCHoklch(63.78% 0.151 278.2)
XYZxyz(29.4736, 24.8274, 77.3527)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FE5 #E5DE78
analogous
#78B5E5 #787FE5 #A778E5
triadic
#787FE5 #E5787F #7FE578
tetradic
#787FE5 #E578B5 #E5DE78 #78E5A7
square
#787FE5 #E578B5 #E5DE78 #78E5A7
split-complementary
#787FE5 #E5A778 #B5E578
monochromatic
#252EBE #454EDB #787FE5 #ABB0EF #DFE0F9

Accessibility & contrast

On white

3.52
#787FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#787FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FE5
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FE5#FFFFFF#000000##000000
##787FE51.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#558DE9
Deuteranopia (green-blind)
#4C84E3
Tritanopia (blue-blind)
#5095A7
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787fe5;
/* rgb */ color: rgb(120, 127, 229);
/* oklch */ color: oklch(63.8% 0.151 278.2);
Tailwind
colors: {
  custom: {
    50: '#a5a4ee',
    500: '#787fe5',
    950: '#000000',
  },
}
SCSS
$custom: #787fe5;
$custom-light: #a5a4ee;
$custom-dark: #000000;
JSON
{
  "hex": "#787fe5",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 236.147,
    "s": 67.702,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63779,
    "c": 0.15121,
    "h": 278.2
  },
  "luminance": 0.24829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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