#787CDB#787CDB

#787CDB is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.6% C 0.141 H 279.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#787CDB
RGBrgb(120, 124, 219)
HSLhsl(238, 58%, 66%)
HSVhsv(238, 45%, 86%)
CMYKcmyk(45.2%, 43.4%, 0%, 14.1%)
CIE-LABlab(55.61, 23.00, -49.22)
CIE-LCHlch(55.61, 54.33, 295.04°)
OKLaboklab(62.61% 0.0237 -0.1393)
OKLCHoklch(62.61% 0.141 279.7)
XYZxyz(27.7357, 23.5215, 70.0828)
Luminance0.2352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CDB #DBD778
analogous
#78AEDB #787CDB #A678DB
triadic
#787CDB #DB787C #7CDB78
tetradic
#787CDB #DB78AE #DBD778 #78DBA6
square
#787CDB #DB78AE #DBD778 #78DBA6
split-complementary
#787CDB #DBA678 #AEDB78
monochromatic
#2E33AB #484DCE #787CDB #A8ABE8 #D9DAF5

Accessibility & contrast

On white

3.68
#787CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#787CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CDB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CDB#FFFFFF#000000##000000
##787CDB1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5789DF
Deuteranopia (green-blind)
#5082D9
Tritanopia (blue-blind)
#5690A1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787cdb;
/* rgb */ color: rgb(120, 124, 219);
/* oklch */ color: oklch(62.6% 0.141 279.7);
Tailwind
colors: {
  custom: {
    50: '#a4a1e6',
    500: '#787cdb',
    950: '#000000',
  },
}
SCSS
$custom: #787cdb;
$custom-light: #a4a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#787cdb",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 237.576,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62614,
    "c": 0.14132,
    "h": 279.7
  },
  "luminance": 0.23523
}

Semantic roles & 50–950 ramp

primary
#787CDB
secondary
#E7E6C7
accent
#BF20C5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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