#786EE4#786EE4

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

Color values

HEX#786EE4
RGBrgb(120, 110, 228)
HSLhsl(245, 69%, 66%)
HSVhsv(245, 52%, 89%)
CMYKcmyk(47.4%, 51.8%, 0%, 10.6%)
CIE-LABlab(52.67, 33.99, -58.98)
CIE-LCHlch(52.67, 68.07, 299.96°)
OKLaboklab(60.57% 0.0412 -0.168)
OKLCHoklch(60.57% 0.173 283.8)
XYZxyz(27.3211, 20.7451, 75.9484)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE4 #DAE46E
analogous
#6E9FE4 #786EE4 #B36EE4
triadic
#786EE4 #E4786E #6EE478
tetradic
#786EE4 #E46E9F #DAE46E #6EE4B3
square
#786EE4 #E46E9F #DAE46E #6EE4B3
split-complementary
#786EE4 #E4B36E #9FE46E
monochromatic
#2E22B6 #483ADA #786EE4 #A8A2EE #D8D5F7

Accessibility & contrast

On white

4.08
#786EE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#786EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE4#FFFFFF#000000##000000
##786EE41.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3481E8
Deuteranopia (green-blind)
#2D7AE1
Tritanopia (blue-blind)
#52889F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee4;
/* rgb */ color: rgb(120, 110, 228);
/* oklch */ color: oklch(60.6% 0.173 283.8);
Tailwind
colors: {
  custom: {
    50: '#a597ed',
    500: '#786ee4',
    950: '#000000',
  },
}
SCSS
$custom: #786ee4;
$custom-light: #a597ed;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee4",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 228
  },
  "hsl": {
    "h": 245.085,
    "s": 68.605,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60566,
    "c": 0.173,
    "h": 283.8
  },
  "luminance": 0.20746
}

Semantic roles & 50–950 ramp

primary
#786EE4
secondary
#E7EAC4
accent
#D115C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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