#786FD9#786FD9

#786FD9 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.157 H 284.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#786FD9
RGBrgb(120, 111, 217)
HSLhsl(245, 58%, 64%)
HSVhsv(245, 49%, 85%)
CMYKcmyk(44.7%, 48.8%, 0%, 14.9%)
CIE-LABlab(52.25, 30.17, -53.44)
CIE-LCHlch(52.25, 61.37, 299.45°)
OKLaboklab(60.04% 0.0392 -0.1517)
OKLCHoklch(60.04% 0.157 284.5)
XYZxyz(25.9509, 20.3706, 68.1967)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD9 #D0D96F
analogous
#6F9BD9 #786FD9 #AD6FD9
triadic
#786FD9 #D9786F #6FD978
tetradic
#786FD9 #D96F9B #D0D96F #6FD9AD
square
#786FD9 #D96F9B #D0D96F #6FD9AD
split-complementary
#786FD9 #D9AD6F #9BD96F
monochromatic
#352BA3 #4B3FCC #786FD9 #A59FE6 #D3D0F3

Accessibility & contrast

On white

4.14
#786FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#786FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD9#FFFFFF#000000##000000
##786FD91.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4280DD
Deuteranopia (green-blind)
#3E79D7
Tritanopia (blue-blind)
#59859A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786fd9;
/* rgb */ color: rgb(120, 111, 217);
/* oklch */ color: oklch(60.0% 0.157 284.5);
Tailwind
colors: {
  custom: {
    50: '#a498e5',
    500: '#786fd9',
    950: '#000000',
  },
}
SCSS
$custom: #786fd9;
$custom-light: #a498e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd9",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 217
  },
  "hsl": {
    "h": 245.094,
    "s": 58.242,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60043,
    "c": 0.15673,
    "h": 284.5
  },
  "luminance": 0.20372
}

Semantic roles & 50–950 ramp

primary
#786FD9
secondary
#E1E4C0
accent
#C620B8
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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