#786EE6#786EE6

#786EE6 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.176 H 283.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786EE6
RGBrgb(120, 110, 230)
HSLhsl(245, 71%, 67%)
HSVhsv(245, 52%, 90%)
CMYKcmyk(47.8%, 52.2%, 0%, 9.8%)
CIE-LABlab(52.79, 34.58, -59.90)
CIE-LCHlch(52.79, 69.17, 300.00°)
OKLaboklab(60.7% 0.0414 -0.1707)
OKLCHoklch(60.7% 0.176 283.6)
XYZxyz(27.6003, 20.8567, 77.4190)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE6 #DCE66E
analogous
#6EA0E6 #786EE6 #B46EE6
triadic
#786EE6 #E6786E #6EE678
tetradic
#786EE6 #E66EA0 #DCE66E #6EE6B4
square
#786EE6 #E66EA0 #DCE66E #6EE6B4
split-complementary
#786EE6 #E6B46E #A0E66E
monochromatic
#2D20BA #473ADD #786EE6 #A9A2EF #D9D6F8

Accessibility & contrast

On white

4.06
#786EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#786EE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE6#FFFFFF#000000##000000
##786EE61.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3182EA
Deuteranopia (green-blind)
#2A7AE3
Tritanopia (blue-blind)
#5188A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee6;
/* rgb */ color: rgb(120, 110, 230);
/* oklch */ color: oklch(60.7% 0.176 283.6);
Tailwind
colors: {
  custom: {
    50: '#a698ef',
    500: '#786ee6',
    950: '#000000',
  },
}
SCSS
$custom: #786ee6;
$custom-light: #a698ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee6",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 230
  },
  "hsl": {
    "h": 245,
    "s": 70.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60697,
    "c": 0.17567,
    "h": 283.6
  },
  "luminance": 0.20858
}

Semantic roles & 50–950 ramp

primary
#786EE6
secondary
#E8EBC5
accent
#D313C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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