#787BF2#787BF2

#787BF2 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.8% C 0.174 H 279.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#787BF2
RGBrgb(120, 123, 242)
HSLhsl(239, 82%, 71%)
HSVhsv(239, 50%, 95%)
CMYKcmyk(50.4%, 49.2%, 0%, 5.1%)
CIE-LABlab(56.65, 30.46, -60.40)
CIE-LCHlch(56.65, 67.65, 296.77°)
OKLaboklab(63.83% 0.0277 -0.1721)
OKLCHoklch(63.83% 0.174 279.2)
XYZxyz(30.8507, 24.5680, 87.1037)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BF2 #F2EF78
analogous
#78B8F2 #787BF2 #B278F2
triadic
#787BF2 #F2787B #7BF278
tetradic
#787BF2 #F278B8 #F2EF78 #78F2B2
square
#787BF2 #F278B8 #F2EF78 #78F2B2
split-complementary
#787BF2 #F2B278 #B8F278
monochromatic
#151ADB #4044ED #787BF2 #B0B2F7 #E3E4FC

Accessibility & contrast

On white

3.55
#787BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#787BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BF2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BF2#FFFFFF#000000##000000
##787BF21.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#3683EF
Tritanopia (blue-blind)
#4695AB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787bf2;
/* rgb */ color: rgb(120, 123, 242);
/* oklch */ color: oklch(63.8% 0.174 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a1f7',
    500: '#787bf2',
    950: '#000000',
  },
}
SCSS
$custom: #787bf2;
$custom-light: #a6a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787bf2",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 238.525,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.63826,
    "c": 0.17433,
    "h": 279.2
  },
  "luminance": 0.2457
}

Semantic roles & 50–950 ramp

primary
#787BF2
secondary
#F3F2D3
accent
#DA07DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #787BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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