#787DF2#787DF2

#787DF2 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.2% C 0.172 H 278.5°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#787DF2
RGBrgb(120, 125, 242)
HSLhsl(238, 82%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(50.4%, 48.3%, 0%, 5.1%)
CIE-LABlab(57.14, 29.28, -59.61)
CIE-LCHlch(57.14, 66.41, 296.16°)
OKLaboklab(64.2% 0.0255 -0.1698)
OKLCHoklch(64.2% 0.172 278.5)
XYZxyz(31.1014, 25.0693, 87.1872)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787DF2 #F2ED78
analogous
#78BAF2 #787DF2 #B078F2
triadic
#787DF2 #F2787D #7DF278
tetradic
#787DF2 #F278BA #F2ED78 #78F2B0
square
#787DF2 #F278BA #F2ED78 #78F2B0
split-complementary
#787DF2 #F2B078 #BAF278
monochromatic
#151DDB #4047ED #787DF2 #B0B3F7 #E3E4FC

Accessibility & contrast

On white

3.49
#787DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#787DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787DF2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787DF2#FFFFFF#000000##000000
##787DF21.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#3B84EF
Tritanopia (blue-blind)
#4696AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787df2;
/* rgb */ color: rgb(120, 125, 242);
/* oklch */ color: oklch(64.2% 0.172 278.5);
Tailwind
colors: {
  custom: {
    50: '#a6a2f7',
    500: '#787df2',
    950: '#000000',
  },
}
SCSS
$custom: #787df2;
$custom-light: #a6a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787df2",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 237.541,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64196,
    "c": 0.1717,
    "h": 278.5
  },
  "luminance": 0.25071
}

Semantic roles & 50–950 ramp

primary
#787DF2
secondary
#F3F2D3
accent
#D607DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #787DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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