#787BCB#787BCB

#787BCB is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.5% C 0.120 H 280.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#787BCB
RGBrgb(120, 123, 203)
HSLhsl(238, 44%, 63%)
HSVhsv(238, 41%, 80%)
CMYKcmyk(40.9%, 39.4%, 0%, 20.4%)
CIE-LABlab(54.52, 18.95, -41.90)
CIE-LCHlch(54.52, 45.99, 294.33°)
OKLaboklab(61.52% 0.0221 -0.1179)
OKLCHoklch(61.52% 0.12 280.6)
XYZxyz(25.6050, 22.4697, 59.4763)
Luminance0.2247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BCB #CBC878
analogous
#78A4CB #787BCB #9E78CB
triadic
#787BCB #CB787B #7BCB78
tetradic
#787BCB #CB78A4 #CBC878 #78CB9E
square
#787BCB #CB78A4 #CBC878 #78CB9E
split-complementary
#787BCB #CB9E78 #A4CB78
monochromatic
#383B91 #4C50BA #787BCB #A4A6DC #D0D1ED

Accessibility & contrast

On white

3.82
#787BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#787BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BCB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BCB#FFFFFF#000000##000000
##787BCB1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CE
Deuteranopia (green-blind)
#5A80C9
Tritanopia (blue-blind)
#5F8B99
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bcb;
/* rgb */ color: rgb(120, 123, 203);
/* oklch */ color: oklch(61.5% 0.120 280.6);
Tailwind
colors: {
  custom: {
    50: '#a2a1db',
    500: '#787bcb',
    950: '#000000',
  },
}
SCSS
$custom: #787bcb;
$custom-light: #a2a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#787bcb",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 203
  },
  "hsl": {
    "h": 237.831,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61518,
    "c": 0.12,
    "h": 280.6
  },
  "luminance": 0.22471
}

Semantic roles & 50–950 ramp

primary
#787BCB
secondary
#DEDDC1
accent
#B32EB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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