#787FA2#787FA2

#787FA2 is a mid, muted blue. Relative luminance 0.218; OKLCH L 60.4% C 0.054 H 275.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#787FA2
RGBrgb(120, 127, 162)
HSLhsl(230, 18%, 55%)
HSVhsv(230, 26%, 64%)
CMYKcmyk(25.9%, 21.6%, 0%, 36.5%)
CIE-LABlab(53.79, 5.49, -19.52)
CIE-LCHlch(53.79, 20.28, 285.71°)
OKLaboklab(60.36% 0.0055 -0.0536)
OKLCHoklch(60.36% 0.054 275.9)
XYZxyz(21.8550, 21.7799, 37.2279)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FA2 #A29B78
analogous
#7894A2 #787FA2 #8678A2
triadic
#787FA2 #A2787F #7FA278
tetradic
#787FA2 #A27894 #A29B78 #78A286
square
#787FA2 #A27894 #A29B78 #78A286
split-complementary
#787FA2 #A28678 #94A278
monochromatic
#41465E #5A6183 #787FA2 #9CA1BB #C0C4D4

Accessibility & contrast

On white

3.92
#787FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#787FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FA2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FA2#FFFFFF#000000##000000
##787FA21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7582A4
Deuteranopia (green-blind)
#727FA1
Tritanopia (blue-blind)
#6E858B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787fa2;
/* rgb */ color: rgb(120, 127, 162);
/* oklch */ color: oklch(60.4% 0.054 275.9);
Tailwind
colors: {
  custom: {
    50: '#9fa4bd',
    500: '#787fa2',
    950: '#000000',
  },
}
SCSS
$custom: #787fa2;
$custom-light: #9fa4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#787fa2",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 230,
    "s": 18.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60363,
    "c": 0.0539,
    "h": 275.9
  },
  "luminance": 0.2178
}

Semantic roles & 50–950 ramp

primary
#787FA2
secondary
#C4C1B2
accent
#AE6DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0E0F12
muted
#7E7F81

Preview Lab

Preview with #787FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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