#787ABA#787ABA

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

Color values

HEX#787ABA
RGBrgb(120, 122, 186)
HSLhsl(238, 32%, 60%)
HSVhsv(238, 35%, 73%)
CMYKcmyk(35.5%, 34.4%, 0%, 27.1%)
CIE-LABlab(53.45, 14.78, -33.89)
CIE-LCHlch(53.45, 36.97, 293.56°)
OKLaboklab(60.43% 0.0197 -0.0947)
OKLCHoklch(60.43% 0.097 281.7)
XYZxyz(23.5657, 21.4565, 49.3447)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ABA #BAB878
analogous
#789BBA #787ABA #9778BA
triadic
#787ABA #BA787A #7ABA78
tetradic
#787ABA #BA789B #BAB878 #78BA97
square
#787ABA #BA789B #BAB878 #78BA97
split-complementary
#787ABA #BA9778 #9BBA78
monochromatic
#3E407A #5355A2 #787ABA #A0A2CF #C9CAE3

Accessibility & contrast

On white

3.97
#787ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#787ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ABA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ABA#FFFFFF#000000##000000
##787ABA1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6682BD
Deuteranopia (green-blind)
#637DB8
Tritanopia (blue-blind)
#668691
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787aba;
/* rgb */ color: rgb(120, 122, 186);
/* oklch */ color: oklch(60.4% 0.097 281.7);
Tailwind
colors: {
  custom: {
    50: '#a1a0cf',
    500: '#787aba',
    950: '#000000',
  },
}
SCSS
$custom: #787aba;
$custom-light: #a1a0cf;
$custom-dark: #000000;
JSON
{
  "hex": "#787aba",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 186
  },
  "hsl": {
    "h": 238.182,
    "s": 32.353,
    "l": 60
  },
  "oklch": {
    "l": 0.60426,
    "c": 0.09671,
    "h": 281.7
  },
  "luminance": 0.21457
}

Semantic roles & 50–950 ramp

primary
#787ABA
secondary
#D4D3BA
accent
#C55FC9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #787ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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