#787FE3#787FE3

#787FE3 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.7% C 0.148 H 278.3°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#787FE3
RGBrgb(120, 127, 227)
HSLhsl(236, 66%, 68%)
HSVhsv(236, 47%, 89%)
CMYKcmyk(47.1%, 44.1%, 0%, 11%)
CIE-LABlab(56.80, 23.58, -51.81)
CIE-LCHlch(56.80, 56.93, 294.47°)
OKLaboklab(63.66% 0.0214 -0.1469)
OKLCHoklch(63.66% 0.148 278.3)
XYZxyz(29.1960, 24.7163, 75.8905)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FE3 #E3DC78
analogous
#78B4E3 #787FE3 #A678E3
triadic
#787FE3 #E3787F #7FE378
tetradic
#787FE3 #E378B4 #E3DC78 #78E3A6
square
#787FE3 #E378B4 #E3DC78 #78E3A6
split-complementary
#787FE3 #E3A678 #B4E378
monochromatic
#2730BA #454FD8 #787FE3 #ABAFEE #DDDFF8

Accessibility & contrast

On white

3.53
#787FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#787FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FE3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FE3#FFFFFF#000000##000000
##787FE31.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#578DE7
Deuteranopia (green-blind)
#4E84E1
Tritanopia (blue-blind)
#5194A6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787fe3;
/* rgb */ color: rgb(120, 127, 227);
/* oklch */ color: oklch(63.7% 0.148 278.3);
Tailwind
colors: {
  custom: {
    50: '#a5a4ec',
    500: '#787fe3',
    950: '#000000',
  },
}
SCSS
$custom: #787fe3;
$custom-light: #a5a4ec;
$custom-dark: #000000;
JSON
{
  "hex": "#787fe3",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 227
  },
  "hsl": {
    "h": 236.075,
    "s": 65.644,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63661,
    "c": 0.14843,
    "h": 278.3
  },
  "luminance": 0.24718
}

Semantic roles & 50–950 ramp

primary
#787FE3
secondary
#ECEACB
accent
#C218CD
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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