#787ECA#787ECA

#787ECA is a light, moderate blue. Relative luminance 0.232; OKLCH L 62.1% C 0.114 H 279.1°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#787ECA
RGBrgb(120, 126, 202)
HSLhsl(236, 44%, 63%)
HSVhsv(236, 41%, 79%)
CMYKcmyk(40.6%, 37.6%, 0%, 20.8%)
CIE-LABlab(55.26, 16.87, -40.18)
CIE-LCHlch(55.26, 43.58, 292.78°)
OKLaboklab(62.06% 0.018 -0.1129)
OKLCHoklch(62.06% 0.114 279.1)
XYZxyz(25.8641, 23.1779, 58.9767)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787ECA #CAC478
analogous
#78A7CA #787ECA #9B78CA
triadic
#787ECA #CA787E #7ECA78
tetradic
#787ECA #CA78A7 #CAC478 #78CA9B
square
#787ECA #CA78A7 #CAC478 #78CA9B
split-complementary
#787ECA #CA9B78 #A7CA78
monochromatic
#383F8F #4C54B9 #787ECA #A4A8DB #D0D2ED

Accessibility & contrast

On white

3.73
#787ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#787ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787ECA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787ECA#FFFFFF#000000##000000
##787ECA1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6487CD
Deuteranopia (green-blind)
#5F81C8
Tritanopia (blue-blind)
#5F8D9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #787eca;
/* rgb */ color: rgb(120, 126, 202);
/* oklch */ color: oklch(62.1% 0.114 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a3da',
    500: '#787eca',
    950: '#000000',
  },
}
SCSS
$custom: #787eca;
$custom-light: #a2a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#787eca",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 235.61,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62064,
    "c": 0.11435,
    "h": 279.1
  },
  "luminance": 0.23179
}

Semantic roles & 50–950 ramp

primary
#787ECA
secondary
#DEDBC0
accent
#AD2FB7
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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