#787BF5#787BF5

#787BF5 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.0% C 0.178 H 279.0°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#787BF5
RGBrgb(120, 123, 245)
HSLhsl(239, 86%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(51%, 49.8%, 0%, 3.9%)
CIE-LABlab(56.83, 31.37, -61.78)
CIE-LCHlch(56.83, 69.29, 296.92°)
OKLaboklab(64.02% 0.028 -0.1762)
OKLCHoklch(64.02% 0.178 279)
XYZxyz(31.3050, 24.7497, 89.4961)
Luminance0.2475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF5 #F5F278
analogous
#78BAF5 #787BF5 #B478F5
triadic
#787BF5 #F5787B #7BF578
tetradic
#787BF5 #F578BA #F5F278 #78F5B4
square
#787BF5 #F578BA #F5F278 #78F5B4
split-complementary
#787BF5 #F5B478 #BAF578
monochromatic
#1116E2 #3F43F1 #787BF5 #B1B3F9 #E3E3FD

Accessibility & contrast

On white

3.53
#787BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#787BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF5#FFFFFF#000000##000000
##787BF51.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8DF9
Deuteranopia (green-blind)
#3184F2
Tritanopia (blue-blind)
#4496AD
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf5;
/* rgb */ color: rgb(120, 123, 245);
/* oklch */ color: oklch(64.0% 0.178 279.0);
Tailwind
colors: {
  custom: {
    50: '#a7a1f9',
    500: '#787bf5',
    950: '#000000',
  },
}
SCSS
$custom: #787bf5;
$custom-light: #a7a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf5",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 238.56,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64018,
    "c": 0.17837,
    "h": 279
  },
  "luminance": 0.24752
}

Semantic roles & 50–950 ramp

primary
#787BF5
secondary
#F4F4D4
accent
#DD03E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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