#787ACE#787ACE

#787ACE is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.5% C 0.126 H 281.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#787ACE
RGBrgb(120, 122, 206)
HSLhsl(239, 47%, 64%)
HSVhsv(239, 42%, 81%)
CMYKcmyk(41.7%, 40.8%, 0%, 19.2%)
CIE-LABlab(54.41, 20.41, -43.77)
CIE-LCHlch(54.41, 48.30, 295.00°)
OKLaboklab(61.49% 0.024 -0.1234)
OKLCHoklch(61.49% 0.126 281)
XYZxyz(25.8426, 22.3673, 61.3362)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ACE #CECC78
analogous
#78A5CE #787ACE #A178CE
triadic
#787ACE #CE787A #7ACE78
tetradic
#787ACE #CE78A5 #CECC78 #78CEA1
square
#787ACE #CE78A5 #CECC78 #78CEA1
split-complementary
#787ACE #CEA178 #A5CE78
monochromatic
#363895 #4B4EBE #787ACE #A5A6DE #D2D2EF

Accessibility & contrast

On white

3.84
#787ACE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#787ACE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ACE
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ACE#FFFFFF#000000##000000
##787ACE1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C85D1
Deuteranopia (green-blind)
#577FCC
Tritanopia (blue-blind)
#5D8B9A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787ace;
/* rgb */ color: rgb(120, 122, 206);
/* oklch */ color: oklch(61.5% 0.126 281.0);
Tailwind
colors: {
  custom: {
    50: '#a3a0dd',
    500: '#787ace',
    950: '#000000',
  },
}
SCSS
$custom: #787ace;
$custom-light: #a3a0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#787ace",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 206
  },
  "hsl": {
    "h": 238.605,
    "s": 46.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61485,
    "c": 0.12571,
    "h": 281
  },
  "luminance": 0.22368
}

Semantic roles & 50–950 ramp

primary
#787ACE
secondary
#E0DFC2
accent
#B72CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #787ACE

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

Preview Lab → · Contrast checker → · Palette generator →

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