#787BC0#787BC0

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

Color values

HEX#787BC0
RGBrgb(120, 123, 192)
HSLhsl(238, 36%, 61%)
HSVhsv(238, 38%, 75%)
CMYKcmyk(37.5%, 35.9%, 0%, 24.7%)
CIE-LABlab(53.99, 15.84, -36.47)
CIE-LCHlch(53.99, 39.77, 293.48°)
OKLaboklab(60.93% 0.0197 -0.1022)
OKLCHoklch(60.93% 0.104 280.9)
XYZxyz(24.3404, 21.9639, 52.8159)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC0 #C0BD78
analogous
#789FC0 #787BC0 #9978C0
triadic
#787BC0 #C0787B #7BC078
tetradic
#787BC0 #C0789F #C0BD78 #78C099
square
#787BC0 #C0789F #C0BD78 #78C099
split-complementary
#787BC0 #C09978 #9FC078
monochromatic
#3C3F81 #5054AB #787BC0 #A2A4D3 #CBCDE7

Accessibility & contrast

On white

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

On black

5.39
#787BC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC0
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC0#FFFFFF#000000##000000
##787BC01.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6584C3
Deuteranopia (green-blind)
#617FBE
Tritanopia (blue-blind)
#648894
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787bc0;
/* rgb */ color: rgb(120, 123, 192);
/* oklch */ color: oklch(60.9% 0.104 280.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1d3',
    500: '#787bc0',
    950: '#000000',
  },
}
SCSS
$custom: #787bc0;
$custom-light: #a1a1d3;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc0",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 192
  },
  "hsl": {
    "h": 237.5,
    "s": 36.364,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60935,
    "c": 0.10406,
    "h": 280.9
  },
  "luminance": 0.21965
}

Semantic roles & 50–950 ramp

primary
#787BC0
secondary
#D7D6BC
accent
#AA36AF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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