#787CCB#787CCB

#787CCB is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.7% C 0.119 H 280.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#787CCB
RGBrgb(120, 124, 203)
HSLhsl(237, 44%, 63%)
HSVhsv(237, 41%, 80%)
CMYKcmyk(40.9%, 38.9%, 0%, 20.4%)
CIE-LABlab(54.78, 18.35, -41.49)
CIE-LCHlch(54.78, 45.37, 293.86°)
OKLaboklab(61.72% 0.0208 -0.1167)
OKLCHoklch(61.72% 0.119 280.1)
XYZxyz(25.7297, 22.7191, 59.5179)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CCB #CBC778
analogous
#78A5CB #787CCB #9D78CB
triadic
#787CCB #CB787C #7CCB78
tetradic
#787CCB #CB78A5 #CBC778 #78CB9D
square
#787CCB #CB78A5 #CBC778 #78CB9D
split-complementary
#787CCB #CB9D78 #A5CB78
monochromatic
#383C91 #4C51BA #787CCB #A4A7DC #D0D2ED

Accessibility & contrast

On white

3.79
#787CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#787CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CCB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CCB#FFFFFF#000000##000000
##787CCB1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6186CE
Deuteranopia (green-blind)
#5C80C9
Tritanopia (blue-blind)
#5F8C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ccb;
/* rgb */ color: rgb(120, 124, 203);
/* oklch */ color: oklch(61.7% 0.119 280.1);
Tailwind
colors: {
  custom: {
    50: '#a2a1db',
    500: '#787ccb',
    950: '#000000',
  },
}
SCSS
$custom: #787ccb;
$custom-light: #a2a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#787ccb",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 203
  },
  "hsl": {
    "h": 237.108,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61717,
    "c": 0.11858,
    "h": 280.1
  },
  "luminance": 0.2272
}

Semantic roles & 50–950 ramp

primary
#787CCB
secondary
#DEDDC1
accent
#B12EB8
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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