#787ED5#787ED5

#787ED5 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.7% C 0.130 H 278.9°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#787ED5
RGBrgb(120, 126, 213)
HSLhsl(236, 53%, 65%)
HSVhsv(236, 44%, 84%)
CMYKcmyk(43.7%, 40.8%, 0%, 16.5%)
CIE-LABlab(55.80, 20.05, -45.53)
CIE-LCHlch(55.80, 49.75, 293.76°)
OKLaboklab(62.66% 0.0202 -0.1285)
OKLCHoklch(62.66% 0.13 278.9)
XYZxyz(27.2132, 23.7176, 66.0819)
Luminance0.2372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ED5 #D5CF78
analogous
#78ACD5 #787ED5 #A078D5
triadic
#787ED5 #D5787E #7ED578
tetradic
#787ED5 #D578AC #D5CF78 #78D5A0
square
#787ED5 #D578AC #D5CF78 #78D5A0
split-complementary
#787ED5 #D5A078 #ACD578
monochromatic
#3239A1 #4951C6 #787ED5 #A7ABE4 #D5D7F2

Accessibility & contrast

On white

3.66
#787ED5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#787ED5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ED5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ED5#FFFFFF#000000##000000
##787ED51.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E89D8
Deuteranopia (green-blind)
#5882D3
Tritanopia (blue-blind)
#59909F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787ed5;
/* rgb */ color: rgb(120, 126, 213);
/* oklch */ color: oklch(62.7% 0.130 278.9);
Tailwind
colors: {
  custom: {
    50: '#a3a3e2',
    500: '#787ed5',
    950: '#000000',
  },
}
SCSS
$custom: #787ed5;
$custom-light: #a3a3e2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ed5",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 213
  },
  "hsl": {
    "h": 236.129,
    "s": 52.542,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62663,
    "c": 0.1301,
    "h": 278.9
  },
  "luminance": 0.23719
}

Semantic roles & 50–950 ramp

primary
#787ED5
secondary
#E4E2C5
accent
#B626C0
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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