#787FA9#787FA9

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

Color values

HEX#787FA9
RGBrgb(120, 127, 169)
HSLhsl(231, 22%, 57%)
HSVhsv(231, 29%, 66%)
CMYKcmyk(29%, 24.9%, 0%, 33.7%)
CIE-LABlab(54.06, 7.27, -23.15)
CIE-LCHlch(54.06, 24.26, 287.45°)
OKLaboklab(60.67% 0.0078 -0.0639)
OKLCHoklch(60.67% 0.064 277)
XYZxyz(22.4946, 22.0357, 40.5966)
Luminance0.2204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FA9 #A9A278
analogous
#7898A9 #787FA9 #8A78A9
triadic
#787FA9 #A9787F #7FA978
tetradic
#787FA9 #A97898 #A9A278 #78A98A
square
#787FA9 #A97898 #A9A278 #78A98A
split-complementary
#787FA9 #A98A78 #98A978
monochromatic
#414666 #59608B #787FA9 #9DA2C1 #C3C6D9

Accessibility & contrast

On white

3.88
#787FA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#787FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FA9
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FA9#FFFFFF#000000##000000
##787FA91.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383AB
Deuteranopia (green-blind)
#7080A8
Tritanopia (blue-blind)
#6C878D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787fa9;
/* rgb */ color: rgb(120, 127, 169);
/* oklch */ color: oklch(60.7% 0.064 277.0);
Tailwind
colors: {
  custom: {
    50: '#a0a4c2',
    500: '#787fa9',
    950: '#000000',
  },
}
SCSS
$custom: #787fa9;
$custom-light: #a0a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#787fa9",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 169
  },
  "hsl": {
    "h": 231.429,
    "s": 22.172,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60665,
    "c": 0.06437,
    "h": 277
  },
  "luminance": 0.22036
}

Semantic roles & 50–950 ramp

primary
#787FA9
secondary
#C8C6B4
accent
#B269BF
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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