#787ABC#787ABC

#787ABC is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.5% C 0.100 H 281.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#787ABC
RGBrgb(120, 122, 188)
HSLhsl(238, 34%, 60%)
HSVhsv(238, 36%, 74%)
CMYKcmyk(36.2%, 35.1%, 0%, 26.3%)
CIE-LABlab(53.54, 15.33, -34.89)
CIE-LCHlch(53.54, 38.11, 293.72°)
OKLaboklab(60.53% 0.0201 -0.0976)
OKLCHoklch(60.53% 0.1 281.7)
XYZxyz(23.7798, 21.5422, 50.4723)
Luminance0.2154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ABC #BCBA78
analogous
#789CBC #787ABC #9878BC
triadic
#787ABC #BC787A #7ABC78
tetradic
#787ABC #BC789C #BCBA78 #78BC98
square
#787ABC #BC789C #BCBA78 #78BC98
split-complementary
#787ABC #BC9878 #9CBC78
monochromatic
#3E3F7C #5254A5 #787ABC #A1A2D0 #CACBE5

Accessibility & contrast

On white

3.96
#787ABC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#787ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ABC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ABC#FFFFFF#000000##000000
##787ABC1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6582BF
Deuteranopia (green-blind)
#627EBA
Tritanopia (blue-blind)
#658792
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787abc;
/* rgb */ color: rgb(120, 122, 188);
/* oklch */ color: oklch(60.5% 0.100 281.7);
Tailwind
colors: {
  custom: {
    50: '#a1a0d0',
    500: '#787abc',
    950: '#000000',
  },
}
SCSS
$custom: #787abc;
$custom-light: #a1a0d0;
$custom-dark: #000000;
JSON
{
  "hex": "#787abc",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 188
  },
  "hsl": {
    "h": 238.235,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60527,
    "c": 0.09965,
    "h": 281.7
  },
  "luminance": 0.21543
}

Semantic roles & 50–950 ramp

primary
#787ABC
secondary
#D5D4BB
accent
#A939AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #787ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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