#786AD9#786AD9

#786AD9 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.1% C 0.164 H 286.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#786AD9
RGBrgb(120, 106, 217)
HSLhsl(248, 59%, 63%)
HSVhsv(248, 51%, 85%)
CMYKcmyk(44.7%, 51.2%, 0%, 14.9%)
CIE-LABlab(51.05, 33.15, -55.37)
CIE-LCHlch(51.05, 64.53, 300.91°)
OKLaboklab(59.14% 0.0452 -0.1574)
OKLCHoklch(59.14% 0.164 286)
XYZxyz(25.4205, 19.3098, 68.0199)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AD9 #CBD96A
analogous
#6A93D9 #786AD9 #B06AD9
triadic
#786AD9 #D9786A #6AD978
tetradic
#786AD9 #D96A93 #CBD96A #6AD9B0
square
#786AD9 #D96A93 #CBD96A #6AD9B0
split-complementary
#786AD9 #D9B06A #93D96A
monochromatic
#3829A0 #4C39CD #786AD9 #A49BE5 #D0CCF2

Accessibility & contrast

On white

4.32
#786AD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#786AD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AD9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AD9#FFFFFF#000000##000000
##786AD91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#377DDD
Deuteranopia (green-blind)
#3476D7
Tritanopia (blue-blind)
#598297
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786ad9;
/* rgb */ color: rgb(120, 106, 217);
/* oklch */ color: oklch(59.1% 0.164 286.0);
Tailwind
colors: {
  custom: {
    50: '#a495e5',
    500: '#786ad9',
    950: '#000000',
  },
}
SCSS
$custom: #786ad9;
$custom-light: #a495e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786ad9",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 217
  },
  "hsl": {
    "h": 247.568,
    "s": 59.358,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59139,
    "c": 0.16379,
    "h": 286
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#786AD9
secondary
#DEE3BC
accent
#C71EB2
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AD9

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

Preview Lab → · Contrast checker → · Palette generator →

#786AD9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva