#787BCD#787BCD

#787BCD is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.6% C 0.123 H 280.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#787BCD
RGBrgb(120, 123, 205)
HSLhsl(238, 46%, 64%)
HSVhsv(238, 41%, 80%)
CMYKcmyk(41.5%, 40%, 0%, 19.6%)
CIE-LABlab(54.62, 19.52, -42.88)
CIE-LCHlch(54.62, 47.11, 294.48°)
OKLaboklab(61.63% 0.0225 -0.1208)
OKLCHoklch(61.63% 0.123 280.6)
XYZxyz(25.8449, 22.5657, 60.7396)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCD #CDCA78
analogous
#78A5CD #787BCD #9F78CD
triadic
#787BCD #CD787B #7BCD78
tetradic
#787BCD #CD78A5 #CDCA78 #78CD9F
square
#787BCD #CD78A5 #CDCA78 #78CD9F
split-complementary
#787BCD #CD9F78 #A5CD78
monochromatic
#373A94 #4B4FBC #787BCD #A5A7DE #D1D2EE

Accessibility & contrast

On white

3.81
#787BCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#787BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCD
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCD#FFFFFF#000000##000000
##787BCD1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E86D0
Deuteranopia (green-blind)
#5980CB
Tritanopia (blue-blind)
#5E8B9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787bcd;
/* rgb */ color: rgb(120, 123, 205);
/* oklch */ color: oklch(61.6% 0.123 280.6);
Tailwind
colors: {
  custom: {
    50: '#a3a1dc',
    500: '#787bcd',
    950: '#000000',
  },
}
SCSS
$custom: #787bcd;
$custom-light: #a3a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#787bcd",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 205
  },
  "hsl": {
    "h": 237.882,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61627,
    "c": 0.12287,
    "h": 280.6
  },
  "luminance": 0.22567
}

Semantic roles & 50–950 ramp

primary
#787BCD
secondary
#DFDEC1
accent
#B42CB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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