#787AFA#787AFA

#787AFA is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.2% C 0.186 H 279.1°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#787AFA
RGBrgb(120, 122, 250)
HSLhsl(239, 93%, 73%)
HSVhsv(239, 52%, 98%)
CMYKcmyk(52%, 51.2%, 0%, 2%)
CIE-LABlab(56.89, 33.48, -64.44)
CIE-LCHlch(56.89, 72.62, 297.46°)
OKLaboklab(64.16% 0.0294 -0.184)
OKLCHoklch(64.16% 0.186 279.1)
XYZxyz(31.9552, 24.8123, 93.5294)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AFA #FAF878
analogous
#78BBFA #787AFA #B778FA
triadic
#787AFA #FA787A #7AFA78
tetradic
#787AFA #FA78BB #FAF878 #78FAB7
square
#787AFA #FA78BB #FAF878 #78FAB7
split-complementary
#787AFA #FAB778 #BBFA78
monochromatic
#090CEF #3D40F8 #787AFA #B3B4FC #E1E2FE

Accessibility & contrast

On white

3.52
#787AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#787AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AFA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AFA#FFFFFF#000000##000000
##787AFA1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#378EFF
Deuteranopia (green-blind)
#2583F7
Tritanopia (blue-blind)
#3F97AE
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #787afa;
/* rgb */ color: rgb(120, 122, 250);
/* oklch */ color: oklch(64.2% 0.186 279.1);
Tailwind
colors: {
  custom: {
    50: '#a7a0fd',
    500: '#787afa',
    950: '#000000',
  },
}
SCSS
$custom: #787afa;
$custom-light: #a7a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#787afa",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 239.077,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64161,
    "c": 0.18635,
    "h": 279.1
  },
  "luminance": 0.24814
}

Semantic roles & 50–950 ramp

primary
#787AFA
secondary
#F6F6D5
accent
#E200E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E18
muted
#7F7E86

Preview Lab

Preview with #787AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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