#787BEB#787BEB

#787BEB is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.4% C 0.165 H 279.4°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#787BEB
RGBrgb(120, 123, 235)
HSLhsl(238, 74%, 70%)
HSVhsv(238, 49%, 92%)
CMYKcmyk(48.9%, 47.7%, 0%, 7.8%)
CIE-LABlab(56.24, 28.36, -57.16)
CIE-LCHlch(56.24, 63.81, 296.38°)
OKLaboklab(63.39% 0.027 -0.1626)
OKLCHoklch(63.39% 0.165 279.4)
XYZxyz(29.8195, 24.1555, 81.6724)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BEB #EBE878
analogous
#78B4EB #787BEB #AF78EB
triadic
#787BEB #EB787B #7BEB78
tetradic
#787BEB #EB78B4 #EBE878 #78EBAF
square
#787BEB #EB78B4 #EBE878 #78EBAF
split-complementary
#787BEB #EBAF78 #B4EB78
monochromatic
#1E23CB #4347E3 #787BEB #ADAFF3 #E3E3FB

Accessibility & contrast

On white

3.60
#787BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#787BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BEB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BEB#FFFFFF#000000##000000
##787BEB1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEF
Deuteranopia (green-blind)
#3F83E9
Tritanopia (blue-blind)
#4C93A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787beb;
/* rgb */ color: rgb(120, 123, 235);
/* oklch */ color: oklch(63.4% 0.165 279.4);
Tailwind
colors: {
  custom: {
    50: '#a6a1f2',
    500: '#787beb',
    950: '#000000',
  },
}
SCSS
$custom: #787beb;
$custom-light: #a6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#787beb",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 238.435,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63385,
    "c": 0.16484,
    "h": 279.4
  },
  "luminance": 0.24157
}

Semantic roles & 50–950 ramp

primary
#787BEB
secondary
#F0EFCF
accent
#D10FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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