#787FE7#787FE7

#787FE7 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.154 H 278.2°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#787FE7
RGBrgb(120, 127, 231)
HSLhsl(236, 70%, 69%)
HSVhsv(236, 48%, 91%)
CMYKcmyk(48.1%, 45%, 0%, 9.4%)
CIE-LABlab(57.02, 24.77, -53.70)
CIE-LCHlch(57.02, 59.14, 294.77°)
OKLaboklab(63.9% 0.0219 -0.1524)
OKLCHoklch(63.9% 0.154 278.2)
XYZxyz(29.7545, 24.9397, 78.8318)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FE7 #E7E078
analogous
#78B7E7 #787FE7 #A978E7
triadic
#787FE7 #E7787F #7FE778
tetradic
#787FE7 #E778B7 #E7E078 #78E7A9
square
#787FE7 #E778B7 #E7E078 #78E7A9
split-complementary
#787FE7 #E7A978 #B7E778
monochromatic
#232DC2 #444EDE #787FE7 #ACB0F0 #E0E2F9

Accessibility & contrast

On white

3.51
#787FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#787FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FE7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FE7#FFFFFF#000000##000000
##787FE71.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#548DEB
Deuteranopia (green-blind)
#4B85E5
Tritanopia (blue-blind)
#4E95A8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787fe7;
/* rgb */ color: rgb(120, 127, 231);
/* oklch */ color: oklch(63.9% 0.154 278.2);
Tailwind
colors: {
  custom: {
    50: '#a5a4ef',
    500: '#787fe7',
    950: '#000000',
  },
}
SCSS
$custom: #787fe7;
$custom-light: #a5a4ef;
$custom-dark: #000000;
JSON
{
  "hex": "#787fe7",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 231
  },
  "hsl": {
    "h": 236.216,
    "s": 69.811,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63898,
    "c": 0.15398,
    "h": 278.2
  },
  "luminance": 0.24941
}

Semantic roles & 50–950 ramp

primary
#787FE7
secondary
#EEECCD
accent
#C614D2
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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