#786DD7#786DD7

#786DD7 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.6% C 0.157 H 285.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786DD7
RGBrgb(120, 109, 215)
HSLhsl(246, 57%, 64%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(44.2%, 49.3%, 0%, 15.7%)
CIE-LABlab(51.65, 30.78, -53.27)
CIE-LCHlch(51.65, 61.53, 300.02°)
OKLaboklab(59.55% 0.0414 -0.1513)
OKLCHoklch(59.55% 0.157 285.3)
XYZxyz(25.4766, 19.8356, 66.7631)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD7 #CCD76D
analogous
#6D97D7 #786DD7 #AD6DD7
triadic
#786DD7 #D7786D #6DD778
tetradic
#786DD7 #D76D97 #CCD76D #6DD7AD
square
#786DD7 #D76D97 #CCD76D #6DD7AD
split-complementary
#786DD7 #D7AD6D #97D76D
monochromatic
#372B9E #4C3DCA #786DD7 #A49DE4 #D1CDF1

Accessibility & contrast

On white

4.23
#786DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#786DD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD7#FFFFFF#000000##000000
##786DD71.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDB
Deuteranopia (green-blind)
#3C78D5
Tritanopia (blue-blind)
#5A8398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd7;
/* rgb */ color: rgb(120, 109, 215);
/* oklch */ color: oklch(59.6% 0.157 285.3);
Tailwind
colors: {
  custom: {
    50: '#a497e4',
    500: '#786dd7',
    950: '#000000',
  },
}
SCSS
$custom: #786dd7;
$custom-light: #a497e4;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd7",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 215
  },
  "hsl": {
    "h": 246.226,
    "s": 56.989,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59552,
    "c": 0.15683,
    "h": 285.3
  },
  "luminance": 0.19837
}

Semantic roles & 50–950 ramp

primary
#786DD7
secondary
#DFE3BD
accent
#C521B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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