#787CD9#787CD9

#787CD9 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.5% C 0.139 H 279.7°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#787CD9
RGBrgb(120, 124, 217)
HSLhsl(238, 56%, 66%)
HSVhsv(238, 45%, 85%)
CMYKcmyk(44.7%, 42.9%, 0%, 14.9%)
CIE-LABlab(55.50, 22.41, -48.27)
CIE-LCHlch(55.50, 53.22, 294.91°)
OKLaboklab(62.5% 0.0234 -0.1365)
OKLCHoklch(62.5% 0.139 279.7)
XYZxyz(27.4740, 23.4168, 68.7044)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CD9 #D9D578
analogous
#78ACD9 #787CD9 #A478D9
triadic
#787CD9 #D9787C #7CD978
tetradic
#787CD9 #D978AC #D9D578 #78D9A4
square
#787CD9 #D978AC #D9D578 #78D9A4
split-complementary
#787CD9 #D9A478 #ACD978
monochromatic
#2F34A7 #484ECC #787CD9 #A8AAE6 #D8D9F4

Accessibility & contrast

On white

3.69
#787CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#787CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CD9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CD9#FFFFFF#000000##000000
##787CD91.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DD
Deuteranopia (green-blind)
#5281D7
Tritanopia (blue-blind)
#578FA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787cd9;
/* rgb */ color: rgb(120, 124, 217);
/* oklch */ color: oklch(62.5% 0.139 279.7);
Tailwind
colors: {
  custom: {
    50: '#a4a1e5',
    500: '#787cd9',
    950: '#000000',
  },
}
SCSS
$custom: #787cd9;
$custom-light: #a4a1e5;
$custom-dark: #000000;
JSON
{
  "hex": "#787cd9",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 237.526,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62499,
    "c": 0.13852,
    "h": 279.7
  },
  "luminance": 0.23418
}

Semantic roles & 50–950 ramp

primary
#787CD9
secondary
#E6E5C6
accent
#BD22C4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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