#787AEC#787AEC

#787AEC is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.3% C 0.168 H 279.7°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#787AEC
RGBrgb(120, 122, 236)
HSLhsl(239, 75%, 70%)
HSVhsv(239, 49%, 93%)
CMYKcmyk(49.2%, 48.3%, 0%, 7.5%)
CIE-LABlab(56.05, 29.25, -58.02)
CIE-LCHlch(56.05, 64.98, 296.75°)
OKLaboklab(63.26% 0.0283 -0.1651)
OKLCHoklch(63.26% 0.168 279.7)
XYZxyz(29.8409, 23.9666, 82.3942)
Luminance0.2397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AEC #ECEA78
analogous
#78B4EC #787AEC #B078EC
triadic
#787AEC #EC787A #7AEC78
tetradic
#787AEC #EC78B4 #ECEA78 #78ECB0
square
#787AEC #EC78B4 #ECEA78 #78ECB0
split-complementary
#787AEC #ECB078 #B4EC78
monochromatic
#1D20CD #4245E4 #787AEC #AEAFF4 #E3E4FB

Accessibility & contrast

On white

3.62
#787AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#787AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AEC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AEC#FFFFFF#000000##000000
##787AEC1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#468BF0
Deuteranopia (green-blind)
#3C82EA
Tritanopia (blue-blind)
#4B93A8
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787aec;
/* rgb */ color: rgb(120, 122, 236);
/* oklch */ color: oklch(63.3% 0.168 279.7);
Tailwind
colors: {
  custom: {
    50: '#a6a0f3',
    500: '#787aec',
    950: '#000000',
  },
}
SCSS
$custom: #787aec;
$custom-light: #a6a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787aec",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 238.966,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63262,
    "c": 0.16754,
    "h": 279.7
  },
  "luminance": 0.23968
}

Semantic roles & 50–950 ramp

primary
#787AEC
secondary
#F0F0D0
accent
#D40ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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