#787FFB#787FFB

#787FFB is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.1% C 0.181 H 277.7°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#787FFB
RGBrgb(120, 127, 251)
HSLhsl(237, 94%, 73%)
HSVhsv(237, 52%, 98%)
CMYKcmyk(52.2%, 49.4%, 0%, 1.6%)
CIE-LABlab(58.16, 30.83, -62.95)
CIE-LCHlch(58.16, 70.09, 296.09°)
OKLaboklab(65.14% 0.0242 -0.1796)
OKLCHoklch(65.14% 0.181 277.7)
XYZxyz(32.7422, 26.1348, 94.5673)
Luminance0.2614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FFB #FBF478
analogous
#78C0FB #787FFB #B278FB
triadic
#787FFB #FB787F #7FFB78
tetradic
#787FFB #FB78C0 #FBF478 #78FBB2
square
#787FFB #FB78C0 #FBF478 #78FBB2
split-complementary
#787FFB #FBB278 #C0FB78
monochromatic
#0714F1 #3D47F9 #787FFB #B3B7FD #E1E3FE

Accessibility & contrast

On white

3.37
#787FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#787FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FFB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FFB#FFFFFF#000000##000000
##787FFB1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4291FF
Deuteranopia (green-blind)
#3287F8
Tritanopia (blue-blind)
#3D9AB1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #787ffb;
/* rgb */ color: rgb(120, 127, 251);
/* oklch */ color: oklch(65.1% 0.181 277.7);
Tailwind
colors: {
  custom: {
    50: '#a7a4fd',
    500: '#787ffb',
    950: '#000000',
  },
}
SCSS
$custom: #787ffb;
$custom-light: #a7a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787ffb",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 236.794,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65137,
    "c": 0.1812,
    "h": 277.7
  },
  "luminance": 0.26137
}

Semantic roles & 50–950 ramp

primary
#787FFB
secondary
#F6F5D5
accent
#D900E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #787FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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