#787BC1#787BC1

#787BC1 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 61.0% C 0.106 H 280.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#787BC1
RGBrgb(120, 123, 193)
HSLhsl(238, 37%, 61%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(37.8%, 36.3%, 0%, 24.3%)
CIE-LABlab(54.04, 16.12, -36.97)
CIE-LCHlch(54.04, 40.33, 293.56°)
OKLaboklab(60.99% 0.02 -0.1036)
OKLCHoklch(60.99% 0.106 280.9)
XYZxyz(24.4516, 22.0083, 53.4014)
Luminance0.2201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC1 #C1BE78
analogous
#78A0C1 #787BC1 #9A78C1
triadic
#787BC1 #C1787B #7BC178
tetradic
#787BC1 #C178A0 #C1BE78 #78C19A
square
#787BC1 #C178A0 #C1BE78 #78C19A
split-complementary
#787BC1 #C19A78 #A0C178
monochromatic
#3C3F83 #4F53AD #787BC1 #A2A4D4 #CCCDE8

Accessibility & contrast

On white

3.89
#787BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#787BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC1
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC1#FFFFFF#000000##000000
##787BC11.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C4
Deuteranopia (green-blind)
#607FBF
Tritanopia (blue-blind)
#638995
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787bc1;
/* rgb */ color: rgb(120, 123, 193);
/* oklch */ color: oklch(61.0% 0.106 280.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1d4',
    500: '#787bc1',
    950: '#000000',
  },
}
SCSS
$custom: #787bc1;
$custom-light: #a1a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc1",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 193
  },
  "hsl": {
    "h": 237.534,
    "s": 37.056,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60986,
    "c": 0.10552,
    "h": 280.9
  },
  "luminance": 0.22009
}

Semantic roles & 50–950 ramp

primary
#787BC1
secondary
#D8D7BD
accent
#AB36B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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