#787FD2#787FD2

#787FD2 is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.7% C 0.124 H 278.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#787FD2
RGBrgb(120, 127, 210)
HSLhsl(235, 50%, 65%)
HSVhsv(235, 43%, 82%)
CMYKcmyk(42.9%, 39.5%, 0%, 17.6%)
CIE-LABlab(55.91, 18.58, -43.67)
CIE-LCHlch(55.91, 47.46, 293.05°)
OKLaboklab(62.7% 0.0184 -0.1231)
OKLCHoklch(62.7% 0.124 278.5)
XYZxyz(26.9645, 23.8237, 64.1379)
Luminance0.2382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FD2 #D2CB78
analogous
#78ACD2 #787FD2 #9E78D2
triadic
#787FD2 #D2787F #7FD278
tetradic
#787FD2 #D278AC #D2CB78 #78D29E
square
#787FD2 #D278AC #D2CB78 #78D29E
split-complementary
#787FD2 #D29E78 #ACD278
monochromatic
#343C9C #4A53C3 #787FD2 #A6ABE1 #D4D6F1

Accessibility & contrast

On white

3.64
#787FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#787FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FD2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FD2#FFFFFF#000000##000000
##787FD21.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD5
Deuteranopia (green-blind)
#5B83D0
Tritanopia (blue-blind)
#5B909E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #787fd2;
/* rgb */ color: rgb(120, 127, 210);
/* oklch */ color: oklch(62.7% 0.124 278.5);
Tailwind
colors: {
  custom: {
    50: '#a3a4e0',
    500: '#787fd2',
    950: '#000000',
  },
}
SCSS
$custom: #787fd2;
$custom-light: #a3a4e0;
$custom-dark: #000000;
JSON
{
  "hex": "#787fd2",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 235.333,
    "s": 50,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62695,
    "c": 0.12445,
    "h": 278.5
  },
  "luminance": 0.23825
}

Semantic roles & 50–950 ramp

primary
#787FD2
secondary
#E2E0C3
accent
#B228BD
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #787FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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