#787DF6#787DF6

#787DF6 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.4% C 0.177 H 278.4°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#787DF6
RGBrgb(120, 125, 246)
HSLhsl(238, 88%, 72%)
HSVhsv(238, 51%, 96%)
CMYKcmyk(51.2%, 49.2%, 0%, 3.5%)
CIE-LABlab(57.38, 30.49, -61.45)
CIE-LCHlch(57.38, 68.60, 296.39°)
OKLaboklab(64.45% 0.0259 -0.1752)
OKLCHoklch(64.45% 0.177 278.4)
XYZxyz(31.7087, 25.3122, 90.3858)
Luminance0.2531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF6 #F6F178
analogous
#78BCF6 #787DF6 #B278F6
triadic
#787DF6 #F6787D #7DF678
tetradic
#787DF6 #F678BC #F6F178 #78F6B2
square
#787DF6 #F678BC #F6F178 #78F6B2
split-complementary
#787DF6 #F6B278 #BCF678
monochromatic
#0F18E4 #3F46F2 #787DF6 #B1B4FA #E2E3FD

Accessibility & contrast

On white

3.46
#787DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#787DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF6#FFFFFF#000000##000000
##787DF61.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#438FFA
Deuteranopia (green-blind)
#3585F3
Tritanopia (blue-blind)
#4398AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787df6;
/* rgb */ color: rgb(120, 125, 246);
/* oklch */ color: oklch(64.4% 0.177 278.4);
Tailwind
colors: {
  custom: {
    50: '#a7a2fa',
    500: '#787df6',
    950: '#000000',
  },
}
SCSS
$custom: #787df6;
$custom-light: #a7a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#787df6",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 237.619,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64449,
    "c": 0.17709,
    "h": 278.4
  },
  "luminance": 0.25314
}

Semantic roles & 50–950 ramp

primary
#787DF6
secondary
#F5F4D5
accent
#DB01E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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