#787DEF#787DEF

#787DEF is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.0% C 0.168 H 278.6°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#787DEF
RGBrgb(120, 125, 239)
HSLhsl(237, 79%, 70%)
HSVhsv(237, 50%, 94%)
CMYKcmyk(49.8%, 47.7%, 0%, 6.3%)
CIE-LABlab(56.97, 28.37, -58.23)
CIE-LCHlch(56.97, 64.77, 295.98°)
OKLaboklab(64.01% 0.0252 -0.1657)
OKLCHoklch(64.01% 0.168 278.6)
XYZxyz(30.6545, 24.8905, 84.8337)
Luminance0.2489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DEF #EFEA78
analogous
#78B8EF #787DEF #AE78EF
triadic
#787DEF #EF787D #7DEF78
tetradic
#787DEF #EF78B8 #EFEA78 #78EFAE
square
#787DEF #EF78B8 #EFEA78 #78EFAE
split-complementary
#787DEF #EFAE78 #B8EF78
monochromatic
#1921D4 #4148E9 #787DEF #AFB2F5 #E4E5FC

Accessibility & contrast

On white

3.51
#787DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#787DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DEF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DEF#FFFFFF#000000##000000
##787DEF1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8DF3
Deuteranopia (green-blind)
#3E84ED
Tritanopia (blue-blind)
#4996AB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787def;
/* rgb */ color: rgb(120, 125, 239);
/* oklch */ color: oklch(64.0% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#a6a2f5',
    500: '#787def',
    950: '#000000',
  },
}
SCSS
$custom: #787def;
$custom-light: #a6a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#787def",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 237.479,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64008,
    "c": 0.16763,
    "h": 278.6
  },
  "luminance": 0.24892
}

Semantic roles & 50–950 ramp

primary
#787DEF
secondary
#F2F0D1
accent
#D20ADB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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