#787AFC#787AFC

#787AFC is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.3% C 0.189 H 279.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#787AFC
RGBrgb(120, 122, 252)
HSLhsl(239, 96%, 73%)
HSVhsv(239, 52%, 99%)
CMYKcmyk(52.4%, 51.6%, 0%, 1.2%)
CIE-LABlab(57.02, 34.09, -65.35)
CIE-LCHlch(57.02, 73.71, 297.55°)
OKLaboklab(64.29% 0.0296 -0.1867)
OKLCHoklch(64.29% 0.189 279)
XYZxyz(32.2705, 24.9384, 95.1897)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787AFC #FCFA78
analogous
#78BCFC #787AFC #B878FC
triadic
#787AFC #FC787A #7AFC78
tetradic
#787AFC #FC78BC #FCFA78 #78FCB8
square
#787AFC #FC78BC #FCFA78 #78FCB8
split-complementary
#787AFC #FCB878 #BCFC78
monochromatic
#0509F4 #3C3FFB #787AFC #B4B5FD #E1E2FE

Accessibility & contrast

On white

3.51
#787AFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#787AFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787AFC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787AFC#FFFFFF#000000##000000
##787AFC1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#348EFF
Deuteranopia (green-blind)
#2084F9
Tritanopia (blue-blind)
#3D97AF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #787afc;
/* rgb */ color: rgb(120, 122, 252);
/* oklch */ color: oklch(64.3% 0.189 279.0);
Tailwind
colors: {
  custom: {
    50: '#a8a0fe',
    500: '#787afc',
    950: '#000000',
  },
}
SCSS
$custom: #787afc;
$custom-light: #a8a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#787afc",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 239.091,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.64293,
    "c": 0.189,
    "h": 279
  },
  "luminance": 0.2494
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #787AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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