#787DB4#787DB4

#787DB4 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 60.7% C 0.084 H 279.6°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#787DB4
RGBrgb(120, 125, 180)
HSLhsl(235, 29%, 59%)
HSVhsv(235, 33%, 71%)
CMYKcmyk(33.3%, 30.6%, 0%, 29.4%)
CIE-LABlab(53.98, 11.36, -29.61)
CIE-LCHlch(53.98, 31.72, 290.99°)
OKLaboklab(60.75% 0.0139 -0.0824)
OKLCHoklch(60.75% 0.084 279.6)
XYZxyz(23.3153, 21.9548, 46.1804)
Luminance0.2196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DB4 #B4AF78
analogous
#789BB4 #787DB4 #9178B4
triadic
#787DB4 #B4787D #7DB478
tetradic
#787DB4 #B4789B #B4AF78 #78B491
square
#787DB4 #B4789B #B4AF78 #78B491
split-complementary
#787DB4 #B49178 #9BB478
monochromatic
#3F4472 #555B9A #787DB4 #9FA3CA #C7C9E0

Accessibility & contrast

On white

3.90
#787DB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#787DB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DB4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DB4#FFFFFF#000000##000000
##787DB41.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C83B6
Deuteranopia (green-blind)
#697FB3
Tritanopia (blue-blind)
#688791
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787db4;
/* rgb */ color: rgb(120, 125, 180);
/* oklch */ color: oklch(60.7% 0.084 279.6);
Tailwind
colors: {
  custom: {
    50: '#a0a2ca',
    500: '#787db4',
    950: '#000000',
  },
}
SCSS
$custom: #787db4;
$custom-light: #a0a2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#787db4",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 180
  },
  "hsl": {
    "h": 235,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.08354,
    "h": 279.6
  },
  "luminance": 0.21956
}

Semantic roles & 50–950 ramp

primary
#787DB4
secondary
#D0CEB8
accent
#BD63C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #787DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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