#787FCF#787FCF

#787FCF is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.5% C 0.120 H 278.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#787FCF
RGBrgb(120, 127, 207)
HSLhsl(235, 48%, 64%)
HSVhsv(235, 42%, 81%)
CMYKcmyk(42%, 38.6%, 0%, 18.8%)
CIE-LABlab(55.76, 17.71, -42.21)
CIE-LCHlch(55.76, 45.78, 292.76°)
OKLaboklab(62.53% 0.0178 -0.1188)
OKLCHoklch(62.53% 0.12 278.5)
XYZxyz(26.5942, 23.6756, 62.1880)
Luminance0.2368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FCF #CFC878
analogous
#78ABCF #787FCF #9D78CF
triadic
#787FCF #CF787F #7FCF78
tetradic
#787FCF #CF78AB #CFC878 #78CF9D
square
#787FCF #CF78AB #CFC878 #78CF9D
split-complementary
#787FCF #CF9D78 #ABCF78
monochromatic
#363D97 #4B54BF #787FCF #A5AADF #D2D5EF

Accessibility & contrast

On white

3.66
#787FCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#787FCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FCF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FCF#FFFFFF#000000##000000
##787FCF1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6389D2
Deuteranopia (green-blind)
#5D82CD
Tritanopia (blue-blind)
#5C8F9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787fcf;
/* rgb */ color: rgb(120, 127, 207);
/* oklch */ color: oklch(62.5% 0.120 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4de',
    500: '#787fcf',
    950: '#000000',
  },
}
SCSS
$custom: #787fcf;
$custom-light: #a3a4de;
$custom-dark: #000000;
JSON
{
  "hex": "#787fcf",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 207
  },
  "hsl": {
    "h": 235.172,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62532,
    "c": 0.12015,
    "h": 278.5
  },
  "luminance": 0.23677
}

Semantic roles & 50–950 ramp

primary
#787FCF
secondary
#E1DEC2
accent
#AF2BBB
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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