#787BFE#787BFE

#787BFE is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.6% C 0.190 H 278.7°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#787BFE
RGBrgb(120, 123, 254)
HSLhsl(239, 99%, 73%)
HSVhsv(239, 53%, 100%)
CMYKcmyk(52.8%, 51.6%, 0%, 0.4%)
CIE-LABlab(57.38, 34.11, -65.87)
CIE-LCHlch(57.38, 74.17, 297.38°)
OKLaboklab(64.61% 0.0286 -0.1882)
OKLCHoklch(64.61% 0.19 278.7)
XYZxyz(32.7125, 25.3127, 96.9088)
Luminance0.2531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BFE #FEFB78
analogous
#78BEFE #787BFE #B878FE
triadic
#787BFE #FE787B #7BFE78
tetradic
#787BFE #FE78BE #FEFB78 #78FEB8
square
#787BFE #FE78BE #FEFB78 #78FEB8
split-complementary
#787BFE #FEB878 #BEFE78
monochromatic
#0207FA #3B40FE #787BFE #B5B6FE #E1E1FF

Accessibility & contrast

On white

3.46
#787BFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#787BFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BFE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BFE#FFFFFF#000000##000000
##787BFE1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#1F85FB
Tritanopia (blue-blind)
#3B98B1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787bfe;
/* rgb */ color: rgb(120, 123, 254);
/* oklch */ color: oklch(64.6% 0.190 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a1ff',
    500: '#787bfe',
    950: '#000000',
  },
}
SCSS
$custom: #787bfe;
$custom-light: #a8a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#787bfe",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 238.657,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64605,
    "c": 0.19036,
    "h": 278.7
  },
  "luminance": 0.25315
}

Semantic roles & 50–950 ramp

primary
#787BFE
secondary
#F7F6D4
accent
#E000E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #787BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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