#787DE3#787DE3

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

Color values

HEX#787DE3
RGBrgb(120, 125, 227)
HSLhsl(237, 66%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(47.1%, 44.9%, 0%, 11%)
CIE-LABlab(56.29, 24.77, -52.62)
CIE-LCHlch(56.29, 58.16, 295.21°)
OKLaboklab(63.28% 0.0237 -0.1493)
OKLCHoklch(63.28% 0.151 279)
XYZxyz(28.9402, 24.2048, 75.8052)
Luminance0.2421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DE3 #E3DE78
analogous
#78B2E3 #787DE3 #A878E3
triadic
#787DE3 #E3787D #7DE378
tetradic
#787DE3 #E378B2 #E3DE78 #78E3A8
square
#787DE3 #E378B2 #E3DE78 #78E3A8
split-complementary
#787DE3 #E3A878 #B2E378
monochromatic
#272DBA #454CD8 #787DE3 #ABAEEE #DDDFF8

Accessibility & contrast

On white

3.60
#787DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787DE3#FFFFFF#000000##000000
##787DE31.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE7
Deuteranopia (green-blind)
#4B83E1
Tritanopia (blue-blind)
#5192A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #787de3;
/* rgb */ color: rgb(120, 125, 227);
/* oklch */ color: oklch(63.3% 0.151 279.0);
Tailwind
colors: {
  custom: {
    50: '#a5a2ec',
    500: '#787de3',
    950: '#000000',
  },
}
SCSS
$custom: #787de3;
$custom-light: #a5a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#787de3",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 227
  },
  "hsl": {
    "h": 237.196,
    "s": 65.644,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63277,
    "c": 0.15113,
    "h": 279
  },
  "luminance": 0.24206
}

Semantic roles & 50–950 ramp

primary
#787DE3
secondary
#ECEACB
accent
#C518CD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #787DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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