#786DE7#786DE7

#786DE7 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.6% C 0.178 H 283.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786DE7
RGBrgb(120, 109, 231)
HSLhsl(245, 72%, 67%)
HSVhsv(245, 53%, 91%)
CMYKcmyk(48.1%, 52.8%, 0%, 9.4%)
CIE-LABlab(52.62, 35.47, -60.74)
CIE-LCHlch(52.62, 70.34, 300.28°)
OKLaboklab(60.59% 0.0425 -0.1732)
OKLCHoklch(60.59% 0.178 283.8)
XYZxyz(27.6339, 20.6985, 78.1249)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE7 #DCE76D
analogous
#6D9FE7 #786DE7 #B56DE7
triadic
#786DE7 #E7786D #6DE778
tetradic
#786DE7 #E76D9F #DCE76D #6DE7B5
square
#786DE7 #E76D9F #DCE76D #6DE7B5
split-complementary
#786DE7 #E7B56D #9FE76D
monochromatic
#2D1FBB #4738DE #786DE7 #A9A2F0 #D9D6F8

Accessibility & contrast

On white

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

On black

5.14
#786DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE7#FFFFFF#000000##000000
##786DE71.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D81EB
Deuteranopia (green-blind)
#257AE4
Tritanopia (blue-blind)
#5088A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786de7;
/* rgb */ color: rgb(120, 109, 231);
/* oklch */ color: oklch(60.6% 0.178 283.8);
Tailwind
colors: {
  custom: {
    50: '#a697ef',
    500: '#786de7',
    950: '#000000',
  },
}
SCSS
$custom: #786de7;
$custom-light: #a697ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786de7",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 231
  },
  "hsl": {
    "h": 245.41,
    "s": 71.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.17835,
    "h": 283.8
  },
  "luminance": 0.207
}

Semantic roles & 50–950 ramp

primary
#786DE7
secondary
#E8ECC4
accent
#D412C2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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