#787EC2#787EC2

#787EC2 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.6% C 0.103 H 279.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#787EC2
RGBrgb(120, 126, 194)
HSLhsl(235, 38%, 62%)
HSVhsv(235, 38%, 76%)
CMYKcmyk(38.1%, 35.1%, 0%, 23.9%)
CIE-LABlab(54.87, 14.61, -36.23)
CIE-LCHlch(54.87, 39.06, 291.97°)
OKLaboklab(61.65% 0.0162 -0.1014)
OKLCHoklch(61.65% 0.103 279.1)
XYZxyz(24.9414, 22.8088, 54.1169)
Luminance0.2281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EC2 #C2BC78
analogous
#78A3C2 #787EC2 #9778C2
triadic
#787EC2 #C2787E #7EC278
tetradic
#787EC2 #C278A3 #C2BC78 #78C297
square
#787EC2 #C278A3 #C2BC78 #78C297
split-complementary
#787EC2 #C29778 #A3C278
monochromatic
#3C4184 #4F56AE #787EC2 #A2A6D5 #CCCFE8

Accessibility & contrast

On white

3.78
#787EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#787EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EC2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EC2#FFFFFF#000000##000000
##787EC21.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6886C5
Deuteranopia (green-blind)
#6381C0
Tritanopia (blue-blind)
#628B97
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ec2;
/* rgb */ color: rgb(120, 126, 194);
/* oklch */ color: oklch(61.6% 0.103 279.1);
Tailwind
colors: {
  custom: {
    50: '#a1a3d4',
    500: '#787ec2',
    950: '#000000',
  },
}
SCSS
$custom: #787ec2;
$custom-light: #a1a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#787ec2",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 235.135,
    "s": 37.755,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61647,
    "c": 0.10274,
    "h": 279.1
  },
  "luminance": 0.2281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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