#787FC2#787FC2

#787FC2 is a mid, moderate blue. Relative luminance 0.231; OKLCH L 61.9% C 0.101 H 278.4°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#787FC2
RGBrgb(120, 127, 194)
HSLhsl(234, 38%, 62%)
HSVhsv(234, 38%, 76%)
CMYKcmyk(38.1%, 34.5%, 0%, 23.9%)
CIE-LABlab(55.14, 14.02, -35.81)
CIE-LCHlch(55.14, 38.46, 291.38°)
OKLaboklab(61.85% 0.0149 -0.1002)
OKLCHoklch(61.85% 0.101 278.4)
XYZxyz(25.0699, 23.0659, 54.1597)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FC2 #C2BB78
analogous
#78A4C2 #787FC2 #9678C2
triadic
#787FC2 #C2787F #7FC278
tetradic
#787FC2 #C278A4 #C2BB78 #78C296
square
#787FC2 #C278A4 #C2BB78 #78C296
split-complementary
#787FC2 #C29678 #A4C278
monochromatic
#3C4284 #4F58AE #787FC2 #A2A7D5 #CCCFE8

Accessibility & contrast

On white

3.74
#787FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#787FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FC2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FC2#FFFFFF#000000##000000
##787FC21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6987C5
Deuteranopia (green-blind)
#6481C0
Tritanopia (blue-blind)
#628C97
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787fc2;
/* rgb */ color: rgb(120, 127, 194);
/* oklch */ color: oklch(61.9% 0.101 278.4);
Tailwind
colors: {
  custom: {
    50: '#a1a4d4',
    500: '#787fc2',
    950: '#000000',
  },
}
SCSS
$custom: #787fc2;
$custom-light: #a1a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#787fc2",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 234.324,
    "s": 37.755,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61851,
    "c": 0.10134,
    "h": 278.4
  },
  "luminance": 0.23067
}

Semantic roles & 50–950 ramp

primary
#787FC2
secondary
#D9D6BD
accent
#A535B1
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #787FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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