#787BE6#787BE6

#787BE6 is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.1% C 0.158 H 279.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#787BE6
RGBrgb(120, 123, 230)
HSLhsl(238, 69%, 69%)
HSVhsv(238, 48%, 90%)
CMYKcmyk(47.8%, 46.5%, 0%, 9.8%)
CIE-LABlab(55.96, 26.86, -54.83)
CIE-LCHlch(55.96, 61.05, 296.10°)
OKLaboklab(63.08% 0.0265 -0.1557)
OKLCHoklch(63.08% 0.158 279.6)
XYZxyz(29.1073, 23.8706, 77.9213)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BE6 #E6E378
analogous
#78B2E6 #787BE6 #AC78E6
triadic
#787BE6 #E6787B #7BE678
tetradic
#787BE6 #E678B2 #E6E378 #78E6AC
square
#787BE6 #E678B2 #E6E378 #78E6AC
split-complementary
#787BE6 #E6AC78 #B2E678
monochromatic
#2428C0 #4449DC #787BE6 #ACADF0 #DFE0F9

Accessibility & contrast

On white

3.64
#787BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#787BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BE6
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BE6#FFFFFF#000000##000000
##787BE61.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8AEA
Deuteranopia (green-blind)
#4582E4
Tritanopia (blue-blind)
#4F92A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787be6;
/* rgb */ color: rgb(120, 123, 230);
/* oklch */ color: oklch(63.1% 0.158 279.6);
Tailwind
colors: {
  custom: {
    50: '#a5a1ee',
    500: '#787be6',
    950: '#000000',
  },
}
SCSS
$custom: #787be6;
$custom-light: #a5a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#787be6",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 230
  },
  "hsl": {
    "h": 238.364,
    "s": 68.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.63078,
    "c": 0.15798,
    "h": 279.6
  },
  "luminance": 0.23872
}

Semantic roles & 50–950 ramp

primary
#787BE6
secondary
#EDECCC
accent
#CC15D1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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