#787AAA#787AAA

#787AAA is a mid, moderate blue. Relative luminance 0.208; OKLCH L 59.7% C 0.073 H 282.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#787AAA
RGBrgb(120, 122, 170)
HSLhsl(238, 23%, 57%)
HSVhsv(238, 29%, 67%)
CMYKcmyk(29.4%, 28.2%, 0%, 33.3%)
CIE-LABlab(52.75, 10.49, -25.76)
CIE-LCHlch(52.75, 27.81, 292.15°)
OKLaboklab(59.66% 0.0153 -0.0713)
OKLCHoklch(59.66% 0.073 282.1)
XYZxyz(21.9590, 20.8139, 40.8829)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AAA #AAA878
analogous
#7893AA #787AAA #8F78AA
triadic
#787AAA #AA787A #7AAA78
tetradic
#787AAA #AA7893 #AAA878 #78AA8F
square
#787AAA #AA7893 #AAA878 #78AA8F
split-complementary
#787AAA #AA8F78 #93AA78
monochromatic
#414267 #585A8C #787AAA #9E9FC2 #C3C4D9

Accessibility & contrast

On white

4.07
#787AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#787AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AAA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AAA#FFFFFF#000000##000000
##787AAA1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C80AC
Deuteranopia (green-blind)
#6A7CA9
Tritanopia (blue-blind)
#6C838B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #787aaa;
/* rgb */ color: rgb(120, 122, 170);
/* oklch */ color: oklch(59.7% 0.073 282.1);
Tailwind
colors: {
  custom: {
    50: '#a0a0c3',
    500: '#787aaa',
    950: '#000000',
  },
}
SCSS
$custom: #787aaa;
$custom-light: #a0a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#787aaa",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 237.6,
    "s": 22.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59655,
    "c": 0.07294,
    "h": 282.1
  },
  "luminance": 0.20814
}

Semantic roles & 50–950 ramp

primary
#787AAA
secondary
#C9C8B5
accent
#BC69BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #787AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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