#787BCA#787BCA

#787BCA is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.5% C 0.119 H 280.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#787BCA
RGBrgb(120, 123, 202)
HSLhsl(238, 44%, 63%)
HSVhsv(238, 41%, 79%)
CMYKcmyk(40.6%, 39.1%, 0%, 20.8%)
CIE-LABlab(54.47, 18.66, -41.41)
CIE-LCHlch(54.47, 45.42, 294.26°)
OKLaboklab(61.46% 0.0219 -0.1165)
OKLCHoklch(61.46% 0.119 280.7)
XYZxyz(25.4863, 22.4222, 58.8507)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCA #CAC778
analogous
#78A4CA #787BCA #9E78CA
triadic
#787BCA #CA787B #7BCA78
tetradic
#787BCA #CA78A4 #CAC778 #78CA9E
square
#787BCA #CA78A4 #CAC778 #78CA9E
split-complementary
#787BCA #CA9E78 #A4CA78
monochromatic
#383B8F #4C50B9 #787BCA #A4A6DB #D0D1ED

Accessibility & contrast

On white

3.83
#787BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#787BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCA#FFFFFF#000000##000000
##787BCA1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6085CD
Deuteranopia (green-blind)
#5B7FC8
Tritanopia (blue-blind)
#5F8B99
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bca;
/* rgb */ color: rgb(120, 123, 202);
/* oklch */ color: oklch(61.5% 0.119 280.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1da',
    500: '#787bca',
    950: '#000000',
  },
}
SCSS
$custom: #787bca;
$custom-light: #a2a1da;
$custom-dark: #000000;
JSON
{
  "hex": "#787bca",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 202
  },
  "hsl": {
    "h": 237.805,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61464,
    "c": 0.11855,
    "h": 280.7
  },
  "luminance": 0.22423
}

Semantic roles & 50–950 ramp

primary
#787BCA
secondary
#DEDDC0
accent
#B22FB7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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