#786DE6#786DE6

#786DE6 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.177 H 283.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#786DE6
RGBrgb(120, 109, 230)
HSLhsl(245, 71%, 66%)
HSVhsv(245, 53%, 90%)
CMYKcmyk(47.8%, 52.6%, 0%, 9.8%)
CIE-LABlab(52.56, 35.17, -60.28)
CIE-LCHlch(52.56, 69.79, 300.26°)
OKLaboklab(60.52% 0.0425 -0.1719)
OKLCHoklch(60.52% 0.177 283.9)
XYZxyz(27.4930, 20.6422, 77.3833)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE6 #DBE66D
analogous
#6D9FE6 #786DE6 #B56DE6
triadic
#786DE6 #E6786D #6DE678
tetradic
#786DE6 #E66D9F #DBE66D #6DE6B5
square
#786DE6 #E66D9F #DBE66D #6DE6B5
split-complementary
#786DE6 #E6B56D #9FE66D
monochromatic
#2E20B9 #4839DD #786DE6 #A8A1EF #D9D6F8

Accessibility & contrast

On white

4.09
#786DE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#786DE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE6#FFFFFF#000000##000000
##786DE61.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E81EA
Deuteranopia (green-blind)
#277AE3
Tritanopia (blue-blind)
#51889F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786de6;
/* rgb */ color: rgb(120, 109, 230);
/* oklch */ color: oklch(60.5% 0.177 283.9);
Tailwind
colors: {
  custom: {
    50: '#a697ef',
    500: '#786de6',
    950: '#000000',
  },
}
SCSS
$custom: #786de6;
$custom-light: #a697ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786de6",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 230
  },
  "hsl": {
    "h": 245.455,
    "s": 70.76,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.17703,
    "h": 283.9
  },
  "luminance": 0.20644
}

Semantic roles & 50–950 ramp

primary
#786DE6
secondary
#E7EBC4
accent
#D313C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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