#787CCD#787CCD

#787CCD is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.8% C 0.121 H 280.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#787CCD
RGBrgb(120, 124, 205)
HSLhsl(237, 46%, 64%)
HSVhsv(237, 41%, 80%)
CMYKcmyk(41.5%, 39.5%, 0%, 19.6%)
CIE-LABlab(54.88, 18.93, -42.47)
CIE-LCHlch(54.88, 46.49, 294.02°)
OKLaboklab(61.83% 0.0212 -0.1196)
OKLCHoklch(61.83% 0.121 280.1)
XYZxyz(25.9696, 22.8150, 60.7812)
Luminance0.2282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CCD #CDC978
analogous
#78A6CD #787CCD #9E78CD
triadic
#787CCD #CD787C #7CCD78
tetradic
#787CCD #CD78A6 #CDC978 #78CD9E
square
#787CCD #CD78A6 #CDC978 #78CD9E
split-complementary
#787CCD #CD9E78 #A6CD78
monochromatic
#373B94 #4B51BC #787CCD #A5A7DE #D1D3EE

Accessibility & contrast

On white

3.77
#787CCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787CCD#FFFFFF#000000##000000
##787CCD1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D0
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#5E8C9B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ccd;
/* rgb */ color: rgb(120, 124, 205);
/* oklch */ color: oklch(61.8% 0.121 280.1);
Tailwind
colors: {
  custom: {
    50: '#a2a1dc',
    500: '#787ccd',
    950: '#000000',
  },
}
SCSS
$custom: #787ccd;
$custom-light: #a2a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787ccd",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 205
  },
  "hsl": {
    "h": 237.176,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61826,
    "c": 0.12146,
    "h": 280.1
  },
  "luminance": 0.22816
}

Semantic roles & 50–950 ramp

primary
#787CCD
secondary
#DFDEC1
accent
#B32CB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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