#787FC8#787FC8

#787FC8 is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.2% C 0.110 H 278.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#787FC8
RGBrgb(120, 127, 200)
HSLhsl(235, 42%, 63%)
HSVhsv(235, 40%, 78%)
CMYKcmyk(40%, 36.5%, 0%, 21.6%)
CIE-LABlab(55.42, 15.71, -38.78)
CIE-LCHlch(55.42, 41.84, 292.05°)
OKLaboklab(62.16% 0.0163 -0.1088)
OKLCHoklch(62.16% 0.11 278.5)
XYZxyz(25.7574, 23.3409, 57.7805)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FC8 #C8C178
analogous
#78A7C8 #787FC8 #9978C8
triadic
#787FC8 #C8787F #7FC878
tetradic
#787FC8 #C878A7 #C8C178 #78C899
square
#787FC8 #C878A7 #C8C178 #78C899
split-complementary
#787FC8 #C89978 #A7C878
monochromatic
#39408C #4D56B6 #787FC8 #A3A8DA #CFD1EB

Accessibility & contrast

On white

3.70
#787FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#787FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FC8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FC8#FFFFFF#000000##000000
##787FC81.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6688CB
Deuteranopia (green-blind)
#6182C6
Tritanopia (blue-blind)
#608D9A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787fc8;
/* rgb */ color: rgb(120, 127, 200);
/* oklch */ color: oklch(62.2% 0.110 278.5);
Tailwind
colors: {
  custom: {
    50: '#a2a4d9',
    500: '#787fc8',
    950: '#000000',
  },
}
SCSS
$custom: #787fc8;
$custom-light: #a2a4d9;
$custom-dark: #000000;
JSON
{
  "hex": "#787fc8",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 200
  },
  "hsl": {
    "h": 234.75,
    "s": 42.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6216,
    "c": 0.11006,
    "h": 278.5
  },
  "luminance": 0.23342
}

Semantic roles & 50–950 ramp

primary
#787FC8
secondary
#DCDABF
accent
#AA30B5
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #787FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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