#787DCA#787DCA

#787DCA is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.9% C 0.116 H 279.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#787DCA
RGBrgb(120, 125, 202)
HSLhsl(236, 44%, 63%)
HSVhsv(236, 41%, 79%)
CMYKcmyk(40.6%, 38.1%, 0%, 20.8%)
CIE-LABlab(54.99, 17.47, -40.59)
CIE-LCHlch(54.99, 44.19, 293.29°)
OKLaboklab(61.86% 0.0193 -0.1141)
OKLCHoklch(61.86% 0.116 279.6)
XYZxyz(25.7369, 22.9235, 58.9343)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DCA #CAC578
analogous
#78A6CA #787DCA #9C78CA
triadic
#787DCA #CA787D #7DCA78
tetradic
#787DCA #CA78A6 #CAC578 #78CA9C
square
#787DCA #CA78A6 #CAC578 #78CA9C
split-complementary
#787DCA #CA9C78 #A6CA78
monochromatic
#383E8F #4C53B9 #787DCA #A4A7DB #D0D2ED

Accessibility & contrast

On white

3.76
#787DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#787DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DCA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DCA#FFFFFF#000000##000000
##787DCA1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CD
Deuteranopia (green-blind)
#5E81C8
Tritanopia (blue-blind)
#5F8C9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787dca;
/* rgb */ color: rgb(120, 125, 202);
/* oklch */ color: oklch(61.9% 0.116 279.6);
Tailwind
colors: {
  custom: {
    50: '#a2a2da',
    500: '#787dca',
    950: '#000000',
  },
}
SCSS
$custom: #787dca;
$custom-light: #a2a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#787dca",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 236.341,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.11574,
    "h": 279.6
  },
  "luminance": 0.22925
}

Semantic roles & 50–950 ramp

primary
#787DCA
secondary
#DEDCC0
accent
#AE2FB7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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