#787FC0#787FC0

#787FC0 is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.8% C 0.098 H 278.4°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#787FC0
RGBrgb(120, 127, 192)
HSLhsl(234, 36%, 61%)
HSVhsv(234, 38%, 75%)
CMYKcmyk(37.5%, 33.9%, 0%, 24.7%)
CIE-LABlab(55.05, 13.46, -34.81)
CIE-LCHlch(55.05, 37.33, 291.14°)
OKLaboklab(61.75% 0.0144 -0.0974)
OKLCHoklch(61.75% 0.098 278.4)
XYZxyz(24.8468, 22.9766, 52.9847)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FC0 #C0B978
analogous
#78A3C0 #787FC0 #9578C0
triadic
#787FC0 #C0787F #7FC078
tetradic
#787FC0 #C078A3 #C0B978 #78C095
square
#787FC0 #C078A3 #C0B978 #78C095
split-complementary
#787FC0 #C09578 #A3C078
monochromatic
#3C4381 #5059AB #787FC0 #A2A7D3 #CBCEE7

Accessibility & contrast

On white

3.75
#787FC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#787FC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FC0
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FC0#FFFFFF#000000##000000
##787FC01.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A87C3
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#638C97
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787fc0;
/* rgb */ color: rgb(120, 127, 192);
/* oklch */ color: oklch(61.8% 0.098 278.4);
Tailwind
colors: {
  custom: {
    50: '#a1a4d3',
    500: '#787fc0',
    950: '#000000',
  },
}
SCSS
$custom: #787fc0;
$custom-light: #a1a4d3;
$custom-dark: #000000;
JSON
{
  "hex": "#787fc0",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 192
  },
  "hsl": {
    "h": 234.167,
    "s": 36.364,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6175,
    "c": 0.09841,
    "h": 278.4
  },
  "luminance": 0.22978
}

Semantic roles & 50–950 ramp

primary
#787FC0
secondary
#D7D5BC
accent
#A336AF
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #787FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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