#787CDF#787CDF

#787CDF is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.8% C 0.147 H 279.5°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#787CDF
RGBrgb(120, 124, 223)
HSLhsl(238, 62%, 67%)
HSVhsv(238, 46%, 87%)
CMYKcmyk(46.2%, 44.4%, 0%, 12.5%)
CIE-LABlab(55.82, 24.18, -51.13)
CIE-LCHlch(55.82, 56.56, 295.31°)
OKLaboklab(62.85% 0.0243 -0.1449)
OKLCHoklch(62.85% 0.147 279.5)
XYZxyz(28.2686, 23.7346, 72.8894)
Luminance0.2374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CDF #DFDB78
analogous
#78B0DF #787CDF #A878DF
triadic
#787CDF #DF787C #7CDF78
tetradic
#787CDF #DF78B0 #DFDB78 #78DFA8
square
#787CDF #DF78B0 #DFDB78 #78DFA8
split-complementary
#787CDF #DFA878 #B0DF78
monochromatic
#2A30B2 #474CD3 #787CDF #A9ACEB #DBDCF6

Accessibility & contrast

On white

3.65
#787CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#787CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CDF
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CDF#FFFFFF#000000##000000
##787CDF1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#548AE3
Deuteranopia (green-blind)
#4D82DD
Tritanopia (blue-blind)
#5491A3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787cdf;
/* rgb */ color: rgb(120, 124, 223);
/* oklch */ color: oklch(62.8% 0.147 279.5);
Tailwind
colors: {
  custom: {
    50: '#a4a1e9',
    500: '#787cdf',
    950: '#000000',
  },
}
SCSS
$custom: #787cdf;
$custom-light: #a4a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#787cdf",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 223
  },
  "hsl": {
    "h": 237.67,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.62848,
    "c": 0.14693,
    "h": 279.5
  },
  "luminance": 0.23736
}

Semantic roles & 50–950 ramp

primary
#787CDF
secondary
#EAE8C9
accent
#C31CC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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