#787FAC#787FAC

#787FAC is a mid, moderate blue. Relative luminance 0.222; OKLCH L 60.8% C 0.069 H 277.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#787FAC
RGBrgb(120, 127, 172)
HSLhsl(232, 24%, 57%)
HSVhsv(232, 30%, 67%)
CMYKcmyk(30.2%, 26.2%, 0%, 32.5%)
CIE-LABlab(54.19, 8.06, -24.69)
CIE-LCHlch(54.19, 25.97, 288.07°)
OKLaboklab(60.8% 0.0088 -0.0683)
OKLCHoklch(60.8% 0.069 277.3)
XYZxyz(22.7795, 22.1497, 42.0968)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FAC #ACA578
analogous
#7899AC #787FAC #8B78AC
triadic
#787FAC #AC787F #7FAC78
tetradic
#787FAC #AC7899 #ACA578 #78AC8B
square
#787FAC #AC7899 #ACA578 #78AC8B
split-complementary
#787FAC #AC8B78 #99AC78
monochromatic
#414669 #585F8F #787FAC #9EA3C3 #C4C7DB

Accessibility & contrast

On white

3.87
#787FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#787FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FAC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FAC#FFFFFF#000000##000000
##787FAC1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7284AE
Deuteranopia (green-blind)
#6F80AB
Tritanopia (blue-blind)
#6B878F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787fac;
/* rgb */ color: rgb(120, 127, 172);
/* oklch */ color: oklch(60.8% 0.069 277.3);
Tailwind
colors: {
  custom: {
    50: '#a0a4c5',
    500: '#787fac',
    950: '#000000',
  },
}
SCSS
$custom: #787fac;
$custom-light: #a0a4c5;
$custom-dark: #000000;
JSON
{
  "hex": "#787fac",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 231.923,
    "s": 23.853,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60798,
    "c": 0.06884,
    "h": 277.3
  },
  "luminance": 0.2215
}

Semantic roles & 50–950 ramp

primary
#787FAC
secondary
#CAC8B5
accent
#B467C0
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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