#787BAD#787BAD

#787BAD is a mid, moderate blue. Relative luminance 0.212; OKLCH L 60.0% C 0.076 H 281.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#787BAD
RGBrgb(120, 123, 173)
HSLhsl(237, 24%, 57%)
HSVhsv(237, 31%, 68%)
CMYKcmyk(30.6%, 28.9%, 0%, 32.2%)
CIE-LABlab(53.14, 10.68, -26.88)
CIE-LCHlch(53.14, 28.93, 291.67°)
OKLaboklab(60% 0.0147 -0.0745)
OKLCHoklch(60% 0.076 281.2)
XYZxyz(22.3695, 21.1755, 42.4357)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BAD #ADAA78
analogous
#7895AD #787BAD #9078AD
triadic
#787BAD #AD787B #7BAD78
tetradic
#787BAD #AD7895 #ADAA78 #78AD90
square
#787BAD #AD7895 #ADAA78 #78AD90
split-complementary
#787BAD #AD9078 #95AD78
monochromatic
#40436A #585B90 #787BAD #9EA0C4 #C4C5DB

Accessibility & contrast

On white

4.01
#787BAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#787BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BAD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BAD#FFFFFF#000000##000000
##787BAD1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D81AF
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#6B848D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787bad;
/* rgb */ color: rgb(120, 123, 173);
/* oklch */ color: oklch(60.0% 0.076 281.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1c5',
    500: '#787bad',
    950: '#000000',
  },
}
SCSS
$custom: #787bad;
$custom-light: #a0a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#787bad",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 173
  },
  "hsl": {
    "h": 236.604,
    "s": 24.424,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60003,
    "c": 0.07597,
    "h": 281.2
  },
  "luminance": 0.21176
}

Semantic roles & 50–950 ramp

primary
#787BAD
secondary
#CBCAB6
accent
#BC67C1
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0E13
muted
#7E7E82

Preview Lab

Preview with #787BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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