#787FDF#787FDF

#787FDF is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.4% C 0.143 H 278.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#787FDF
RGBrgb(120, 127, 223)
HSLhsl(236, 62%, 67%)
HSVhsv(236, 46%, 87%)
CMYKcmyk(46.2%, 43%, 0%, 12.5%)
CIE-LABlab(56.58, 22.39, -49.92)
CIE-LCHlch(56.58, 54.71, 294.16°)
OKLaboklab(63.43% 0.0207 -0.1413)
OKLCHoklch(63.43% 0.143 278.3)
XYZxyz(28.6503, 24.4980, 73.0167)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FDF #DFD878
analogous
#78B3DF #787FDF #A478DF
triadic
#787FDF #DF787F #7FDF78
tetradic
#787FDF #DF78B3 #DFD878 #78DFA4
square
#787FDF #DF78B3 #DFD878 #78DFA4
split-complementary
#787FDF #DFA478 #B3DF78
monochromatic
#2A34B2 #4750D3 #787FDF #A9AEEB #DBDDF6

Accessibility & contrast

On white

3.56
#787FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#787FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FDF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FDF#FFFFFF#000000##000000
##787FDF1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#598CE3
Deuteranopia (green-blind)
#5284DD
Tritanopia (blue-blind)
#5493A4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787fdf;
/* rgb */ color: rgb(120, 127, 223);
/* oklch */ color: oklch(63.4% 0.143 278.3);
Tailwind
colors: {
  custom: {
    50: '#a4a4e9',
    500: '#787fdf',
    950: '#000000',
  },
}
SCSS
$custom: #787fdf;
$custom-light: #a4a4e9;
$custom-dark: #000000;
JSON
{
  "hex": "#787fdf",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 223
  },
  "hsl": {
    "h": 235.922,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.63428,
    "c": 0.14284,
    "h": 278.3
  },
  "luminance": 0.245
}

Semantic roles & 50–950 ramp

primary
#787FDF
secondary
#EAE7C9
accent
#BE1CC9
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #787FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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