#786ED6#786ED6

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

Color values

HEX#786ED6
RGBrgb(120, 110, 214)
HSLhsl(246, 56%, 64%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(43.9%, 48.6%, 0%, 16.1%)
CIE-LABlab(51.84, 29.90, -52.41)
CIE-LCHlch(51.84, 60.34, 299.70°)
OKLaboklab(59.67% 0.0401 -0.1487)
OKLCHoklch(59.67% 0.154 285.1)
XYZxyz(25.4557, 19.9989, 66.1242)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ED6 #CCD66E
analogous
#6E98D6 #786ED6 #AC6ED6
triadic
#786ED6 #D6786E #6ED678
tetradic
#786ED6 #D66E98 #CCD66E #6ED6AC
square
#786ED6 #D66E98 #CCD66E #6ED6AC
split-complementary
#786ED6 #D6AC6E #98D66E
monochromatic
#372C9D #4C3EC9 #786ED6 #A49EE3 #D1CDF1

Accessibility & contrast

On white

4.20
#786ED6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#786ED6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ED6
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ED6#FFFFFF#000000##000000
##786ED61.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#427FDA
Deuteranopia (green-blind)
#3F78D4
Tritanopia (blue-blind)
#5B8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ed6;
/* rgb */ color: rgb(120, 110, 214);
/* oklch */ color: oklch(59.7% 0.154 285.1);
Tailwind
colors: {
  custom: {
    50: '#a497e3',
    500: '#786ed6',
    950: '#000000',
  },
}
SCSS
$custom: #786ed6;
$custom-light: #a497e3;
$custom-dark: #000000;
JSON
{
  "hex": "#786ed6",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 214
  },
  "hsl": {
    "h": 245.769,
    "s": 55.914,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59673,
    "c": 0.15404,
    "h": 285.1
  },
  "luminance": 0.2
}

Semantic roles & 50–950 ramp

primary
#786ED6
secondary
#DFE2BD
accent
#C322B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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