#787FF4#787FF4

#787FF4 is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.7% C 0.172 H 277.9°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#787FF4
RGBrgb(120, 127, 244)
HSLhsl(237, 85%, 71%)
HSVhsv(237, 51%, 96%)
CMYKcmyk(50.8%, 48%, 0%, 4.3%)
CIE-LABlab(57.75, 28.70, -59.74)
CIE-LCHlch(57.75, 66.28, 295.66°)
OKLaboklab(64.69% 0.0235 -0.1702)
OKLCHoklch(64.69% 0.172 277.9)
XYZxyz(31.6591, 25.7016, 88.8631)
Luminance0.2570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF4 #F4ED78
analogous
#78BDF4 #787FF4 #AF78F4
triadic
#787FF4 #F4787F #7FF478
tetradic
#787FF4 #F478BD #F4ED78 #78F4AF
square
#787FF4 #F478BD #F4ED78 #78F4AF
split-complementary
#787FF4 #F4AF78 #BDF478
monochromatic
#121EDF #3F49EF #787FF4 #B1B5F9 #E3E4FD

Accessibility & contrast

On white

3.42
#787FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#787FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF4#FFFFFF#000000##000000
##787FF41.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4990F8
Deuteranopia (green-blind)
#3C86F1
Tritanopia (blue-blind)
#4499AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #787ff4;
/* rgb */ color: rgb(120, 127, 244);
/* oklch */ color: oklch(64.7% 0.172 277.9);
Tailwind
colors: {
  custom: {
    50: '#a7a4f8',
    500: '#787ff4',
    950: '#000000',
  },
}
SCSS
$custom: #787ff4;
$custom-light: #a7a4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff4",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 236.613,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64694,
    "c": 0.17178,
    "h": 277.9
  },
  "luminance": 0.25703
}

Semantic roles & 50–950 ramp

primary
#787FF4
secondary
#F4F2D4
accent
#D504E1
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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