#787DF5#787DF5

#787DF5 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.4% C 0.176 H 278.4°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#787DF5
RGBrgb(120, 125, 245)
HSLhsl(238, 86%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(51%, 49%, 0%, 3.9%)
CIE-LABlab(57.32, 30.19, -60.99)
CIE-LCHlch(57.32, 68.05, 296.33°)
OKLaboklab(64.39% 0.0258 -0.1738)
OKLCHoklch(64.39% 0.176 278.4)
XYZxyz(31.5556, 25.2510, 89.5796)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF5 #F5F078
analogous
#78BCF5 #787DF5 #B278F5
triadic
#787DF5 #F5787D #7DF578
tetradic
#787DF5 #F578BC #F5F078 #78F5B2
square
#787DF5 #F578BC #F5F078 #78F5B2
split-complementary
#787DF5 #F5B278 #BCF578
monochromatic
#1119E2 #3F46F1 #787DF5 #B1B4F9 #E3E4FD

Accessibility & contrast

On white

3.47
#787DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#787DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF5
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF5#FFFFFF#000000##000000
##787DF51.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#448FF9
Deuteranopia (green-blind)
#3685F2
Tritanopia (blue-blind)
#4397AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787df5;
/* rgb */ color: rgb(120, 125, 245);
/* oklch */ color: oklch(64.4% 0.176 278.4);
Tailwind
colors: {
  custom: {
    50: '#a7a2f9',
    500: '#787df5',
    950: '#000000',
  },
}
SCSS
$custom: #787df5;
$custom-light: #a7a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#787df5",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 237.6,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64385,
    "c": 0.17575,
    "h": 278.4
  },
  "luminance": 0.25253
}

Semantic roles & 50–950 ramp

primary
#787DF5
secondary
#F4F3D4
accent
#DA03E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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