#786DD9#786DD9

#786DD9 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.7% C 0.160 H 285.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#786DD9
RGBrgb(120, 109, 217)
HSLhsl(246, 59%, 64%)
HSVhsv(246, 50%, 85%)
CMYKcmyk(44.7%, 49.8%, 0%, 14.9%)
CIE-LABlab(51.77, 31.36, -54.22)
CIE-LCHlch(51.77, 62.64, 300.05°)
OKLaboklab(59.68% 0.0416 -0.154)
OKLCHoklch(59.68% 0.16 285.1)
XYZxyz(25.7351, 19.9390, 68.1248)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD9 #CED96D
analogous
#6D98D9 #786DD9 #AE6DD9
triadic
#786DD9 #D9786D #6DD978
tetradic
#786DD9 #D96D98 #CED96D #6DD9AE
square
#786DD9 #D96D98 #CED96D #6DD9AE
split-complementary
#786DD9 #D9AE6D #98D96D
monochromatic
#362AA2 #4B3CCC #786DD9 #A59EE6 #D2CEF2

Accessibility & contrast

On white

4.21
#786DD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#786DD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD9#FFFFFF#000000##000000
##786DD91.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7FDD
Deuteranopia (green-blind)
#3A78D7
Tritanopia (blue-blind)
#598499
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd9;
/* rgb */ color: rgb(120, 109, 217);
/* oklch */ color: oklch(59.7% 0.160 285.1);
Tailwind
colors: {
  custom: {
    50: '#a497e5',
    500: '#786dd9',
    950: '#000000',
  },
}
SCSS
$custom: #786dd9;
$custom-light: #a497e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd9",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 217
  },
  "hsl": {
    "h": 246.111,
    "s": 58.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59678,
    "c": 0.15956,
    "h": 285.1
  },
  "luminance": 0.1994
}

Semantic roles & 50–950 ramp

primary
#786DD9
secondary
#E0E4BE
accent
#C61FB5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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