#787FF5#787FF5

#787FF5 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.173 H 277.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#787FF5
RGBrgb(120, 127, 245)
HSLhsl(237, 86%, 72%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(51%, 48.2%, 0%, 3.9%)
CIE-LABlab(57.81, 29.00, -60.20)
CIE-LCHlch(57.81, 66.82, 295.72°)
OKLaboklab(64.76% 0.0236 -0.1715)
OKLCHoklch(64.76% 0.173 277.8)
XYZxyz(31.8114, 25.7625, 89.6649)
Luminance0.2576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF5 #F5EE78
analogous
#78BEF5 #787FF5 #B078F5
triadic
#787FF5 #F5787F #7FF578
tetradic
#787FF5 #F578BE #F5EE78 #78F5B0
square
#787FF5 #F578BE #F5EE78 #78F5B0
split-complementary
#787FF5 #F5B078 #BEF578
monochromatic
#111CE2 #3F49F1 #787FF5 #B1B5F9 #E3E4FD

Accessibility & contrast

On white

3.41
#787FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#787FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF5#FFFFFF#000000##000000
##787FF51.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#3B86F2
Tritanopia (blue-blind)
#4399AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ff5;
/* rgb */ color: rgb(120, 127, 245);
/* oklch */ color: oklch(64.8% 0.173 277.8);
Tailwind
colors: {
  custom: {
    50: '#a7a4f9',
    500: '#787ff5',
    950: '#000000',
  },
}
SCSS
$custom: #787ff5;
$custom-light: #a7a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff5",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 236.64,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64756,
    "c": 0.17313,
    "h": 277.8
  },
  "luminance": 0.25764
}

Semantic roles & 50–950 ramp

primary
#787FF5
secondary
#F4F3D4
accent
#D603E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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