#787BDF#787BDF

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

Color values

HEX#787BDF
RGBrgb(120, 123, 223)
HSLhsl(238, 62%, 67%)
HSVhsv(238, 46%, 87%)
CMYKcmyk(46.2%, 44.8%, 0%, 12.5%)
CIE-LABlab(55.57, 24.78, -51.53)
CIE-LCHlch(55.57, 57.18, 295.68°)
OKLaboklab(62.66% 0.0255 -0.1461)
OKLCHoklch(62.66% 0.148 279.9)
XYZxyz(28.1439, 23.4853, 72.8479)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BDF #DFDC78
analogous
#78AFDF #787BDF #A878DF
triadic
#787BDF #DF787B #7BDF78
tetradic
#787BDF #DF78AF #DFDC78 #78DFA8
square
#787BDF #DF78AF #DFDC78 #78DFA8
split-complementary
#787BDF #DFA878 #AFDF78
monochromatic
#2A2EB2 #474BD3 #787BDF #A9ABEB #DBDCF6

Accessibility & contrast

On white

3.69
#787BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787BDF#FFFFFF#000000##000000
##787BDF1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5389E3
Deuteranopia (green-blind)
#4B81DD
Tritanopia (blue-blind)
#5490A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787bdf;
/* rgb */ color: rgb(120, 123, 223);
/* oklch */ color: oklch(62.7% 0.148 279.9);
Tailwind
colors: {
  custom: {
    50: '#a4a1e9',
    500: '#787bdf',
    950: '#000000',
  },
}
SCSS
$custom: #787bdf;
$custom-light: #a4a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#787bdf",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 223
  },
  "hsl": {
    "h": 238.252,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.62657,
    "c": 0.14829,
    "h": 279.9
  },
  "luminance": 0.23487
}

Semantic roles & 50–950 ramp

primary
#787BDF
secondary
#EAE9C9
accent
#C41CC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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