#787CD5#787CD5

#787CD5 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.3% C 0.133 H 279.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#787CD5
RGBrgb(120, 124, 213)
HSLhsl(237, 53%, 65%)
HSVhsv(237, 44%, 84%)
CMYKcmyk(43.7%, 41.8%, 0%, 16.5%)
CIE-LABlab(55.29, 21.24, -46.35)
CIE-LCHlch(55.29, 50.98, 294.62°)
OKLaboklab(62.27% 0.0227 -0.1309)
OKLCHoklch(62.27% 0.133 279.8)
XYZxyz(26.9600, 23.2112, 65.9975)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787CD5 #D5D178
analogous
#78ABD5 #787CD5 #A278D5
triadic
#787CD5 #D5787C #7CD578
tetradic
#787CD5 #D578AB #D5D178 #78D5A2
square
#787CD5 #D578AB #D5D178 #78D5A2
split-complementary
#787CD5 #D5A278 #ABD578
monochromatic
#3237A1 #494FC6 #787CD5 #A7A9E4 #D5D7F2

Accessibility & contrast

On white

3.72
#787CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#787CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787CD5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787CD5#FFFFFF#000000##000000
##787CD51.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B88D8
Deuteranopia (green-blind)
#5581D3
Tritanopia (blue-blind)
#5A8E9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787cd5;
/* rgb */ color: rgb(120, 124, 213);
/* oklch */ color: oklch(62.3% 0.133 279.8);
Tailwind
colors: {
  custom: {
    50: '#a3a1e2',
    500: '#787cd5',
    950: '#000000',
  },
}
SCSS
$custom: #787cd5;
$custom-light: #a3a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#787cd5",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 213
  },
  "hsl": {
    "h": 237.419,
    "s": 52.542,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6227,
    "c": 0.13287,
    "h": 279.8
  },
  "luminance": 0.23212
}

Semantic roles & 50–950 ramp

primary
#787CD5
secondary
#E4E3C5
accent
#B926C0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #787CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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