#787BE2#787BE2

#787BE2 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.8% C 0.152 H 279.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#787BE2
RGBrgb(120, 123, 226)
HSLhsl(238, 65%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(46.9%, 45.6%, 0%, 11.4%)
CIE-LABlab(55.73, 25.67, -52.95)
CIE-LCHlch(55.73, 58.84, 295.86°)
OKLaboklab(62.84% 0.0259 -0.1502)
OKLCHoklch(62.84% 0.152 279.8)
XYZxyz(28.5520, 23.6485, 74.9969)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BE2 #E2DF78
analogous
#78B0E2 #787BE2 #AA78E2
triadic
#787BE2 #E2787B #7BE278
tetradic
#787BE2 #E278B0 #E2DF78 #78E2AA
square
#787BE2 #E278B0 #E2DF78 #78E2AA
split-complementary
#787BE2 #E2AA78 #B0E278
monochromatic
#282CB8 #464AD7 #787BE2 #AAACED #DDDEF8

Accessibility & contrast

On white

3.66
#787BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#787BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BE2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BE2#FFFFFF#000000##000000
##787BE21.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#4982E0
Tritanopia (blue-blind)
#5291A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787be2;
/* rgb */ color: rgb(120, 123, 226);
/* oklch */ color: oklch(62.8% 0.152 279.8);
Tailwind
colors: {
  custom: {
    50: '#a5a1ec',
    500: '#787be2',
    950: '#000000',
  },
}
SCSS
$custom: #787be2;
$custom-light: #a5a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#787be2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 238.302,
    "s": 64.634,
    "l": 67.843
  },
  "oklch": {
    "l": 0.62836,
    "c": 0.15246,
    "h": 279.8
  },
  "luminance": 0.2365
}

Semantic roles & 50–950 ramp

primary
#787BE2
secondary
#EBEACB
accent
#C719CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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