#787FF2#787FF2

#787FF2 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.169 H 277.9°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#787FF2
RGBrgb(120, 127, 242)
HSLhsl(237, 82%, 71%)
HSVhsv(237, 50%, 95%)
CMYKcmyk(50.4%, 47.5%, 0%, 5.1%)
CIE-LABlab(57.64, 28.09, -58.82)
CIE-LCHlch(57.64, 65.18, 295.53°)
OKLaboklab(64.57% 0.0233 -0.1674)
OKLCHoklch(64.57% 0.169 277.9)
XYZxyz(31.3571, 25.5808, 87.2724)
Luminance0.2558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787FF2 #F2EB78
analogous
#78BCF2 #787FF2 #AE78F2
triadic
#787FF2 #F2787F #7FF278
tetradic
#787FF2 #F278BC #F2EB78 #78F2AE
square
#787FF2 #F278BC #F2EB78 #78F2AE
split-complementary
#787FF2 #F2AE78 #BCF278
monochromatic
#1520DB #404AED #787FF2 #B0B4F7 #E3E5FC

Accessibility & contrast

On white

3.43
#787FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#787FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787FF2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787FF2#FFFFFF#000000##000000
##787FF21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#3F86EF
Tritanopia (blue-blind)
#4698AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #787ff2;
/* rgb */ color: rgb(120, 127, 242);
/* oklch */ color: oklch(64.6% 0.169 277.9);
Tailwind
colors: {
  custom: {
    50: '#a6a4f7',
    500: '#787ff2',
    950: '#000000',
  },
}
SCSS
$custom: #787ff2;
$custom-light: #a6a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#787ff2",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 236.557,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64569,
    "c": 0.16906,
    "h": 277.9
  },
  "luminance": 0.25583
}

Semantic roles & 50–950 ramp

primary
#787FF2
secondary
#F3F1D3
accent
#D207DF
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #787FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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