#787BEC#787BEC

#787BEC is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.4% C 0.166 H 279.4°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#787BEC
RGBrgb(120, 123, 236)
HSLhsl(238, 75%, 70%)
HSVhsv(238, 49%, 93%)
CMYKcmyk(49.2%, 47.9%, 0%, 7.5%)
CIE-LABlab(56.30, 28.66, -57.63)
CIE-LCHlch(56.30, 64.36, 296.44°)
OKLaboklab(63.45% 0.0271 -0.164)
OKLCHoklch(63.45% 0.166 279.4)
XYZxyz(29.9644, 24.2134, 82.4354)
Luminance0.2422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BEC #ECE978
analogous
#78B5EC #787BEC #AF78EC
triadic
#787BEC #EC787B #7BEC78
tetradic
#787BEC #EC78B5 #ECE978 #78ECAF
square
#787BEC #EC78B5 #ECE978 #78ECAF
split-complementary
#787BEC #ECAF78 #B5EC78
monochromatic
#1D21CD #4247E4 #787BEC #AEAFF4 #E3E4FB

Accessibility & contrast

On white

3.59
#787BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#787BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BEC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BEC#FFFFFF#000000##000000
##787BEC1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#488CF0
Deuteranopia (green-blind)
#3E83EA
Tritanopia (blue-blind)
#4B93A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787bec;
/* rgb */ color: rgb(120, 123, 236);
/* oklch */ color: oklch(63.4% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#a6a1f3',
    500: '#787bec',
    950: '#000000',
  },
}
SCSS
$custom: #787bec;
$custom-light: #a6a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#787bec",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 238.448,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63448,
    "c": 0.1662,
    "h": 279.4
  },
  "luminance": 0.24215
}

Semantic roles & 50–950 ramp

primary
#787BEC
secondary
#F0EFD0
accent
#D20ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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