#787DEB#787DEB

#787DEB is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.162 H 278.8°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#787DEB
RGBrgb(120, 125, 235)
HSLhsl(237, 74%, 70%)
HSVhsv(237, 49%, 92%)
CMYKcmyk(48.9%, 46.8%, 0%, 7.8%)
CIE-LABlab(56.74, 27.17, -56.37)
CIE-LCHlch(56.74, 62.57, 295.73°)
OKLaboklab(63.76% 0.0248 -0.1603)
OKLCHoklch(63.76% 0.162 278.8)
XYZxyz(30.0701, 24.6568, 81.7559)
Luminance0.2466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DEB #EBE678
analogous
#78B7EB #787DEB #AC78EB
triadic
#787DEB #EB787D #7DEB78
tetradic
#787DEB #EB78B7 #EBE678 #78EBAC
square
#787DEB #EB78B7 #EBE678 #78EBAC
split-complementary
#787DEB #EBAC78 #B7EB78
monochromatic
#1E26CB #434AE3 #787DEB #ADB0F3 #E3E4FB

Accessibility & contrast

On white

3.54
#787DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#787DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DEB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DEB#FFFFFF#000000##000000
##787DEB1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#4384E9
Tritanopia (blue-blind)
#4C95A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787deb;
/* rgb */ color: rgb(120, 125, 235);
/* oklch */ color: oklch(63.8% 0.162 278.8);
Tailwind
colors: {
  custom: {
    50: '#a6a2f2',
    500: '#787deb',
    950: '#000000',
  },
}
SCSS
$custom: #787deb;
$custom-light: #a6a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#787deb",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 237.391,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63761,
    "c": 0.16216,
    "h": 278.8
  },
  "luminance": 0.24658
}

Semantic roles & 50–950 ramp

primary
#787DEB
secondary
#F0EECF
accent
#CE0FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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