#787DB2#787DB2

#787DB2 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.7% C 0.081 H 279.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#787DB2
RGBrgb(120, 125, 178)
HSLhsl(235, 27%, 58%)
HSVhsv(235, 33%, 70%)
CMYKcmyk(32.6%, 29.8%, 0%, 30.2%)
CIE-LABlab(53.89, 10.82, -28.60)
CIE-LCHlch(53.89, 30.58, 290.73°)
OKLaboklab(60.65% 0.0134 -0.0795)
OKLCHoklch(60.65% 0.081 279.5)
XYZxyz(23.1130, 21.8739, 45.1152)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DB2 #B2AD78
analogous
#789AB2 #787DB2 #9078B2
triadic
#787DB2 #B2787D #7DB278
tetradic
#787DB2 #B2789A #B2AD78 #78B290
square
#787DB2 #B2789A #B2AD78 #78B290
split-complementary
#787DB2 #B29078 #9AB278
monochromatic
#404470 #565C97 #787DB2 #9FA3C8 #C6C8DE

Accessibility & contrast

On white

3.91
#787DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#787DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DB2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DB2#FFFFFF#000000##000000
##787DB21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D83B4
Deuteranopia (green-blind)
#6A7FB1
Tritanopia (blue-blind)
#698790
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787db2;
/* rgb */ color: rgb(120, 125, 178);
/* oklch */ color: oklch(60.7% 0.081 279.5);
Tailwind
colors: {
  custom: {
    50: '#a0a2c9',
    500: '#787db2',
    950: '#000000',
  },
}
SCSS
$custom: #787db2;
$custom-light: #a0a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#787db2",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 234.828,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60654,
    "c": 0.08057,
    "h": 279.5
  },
  "luminance": 0.21875
}

Semantic roles & 50–950 ramp

primary
#787DB2
secondary
#CECCB7
accent
#BB64C4
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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