#786EE5#786EE5

#786EE5 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.6% C 0.174 H 283.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#786EE5
RGBrgb(120, 110, 229)
HSLhsl(245, 70%, 66%)
HSVhsv(245, 52%, 90%)
CMYKcmyk(47.6%, 52%, 0%, 10.2%)
CIE-LABlab(52.73, 34.29, -59.44)
CIE-LCHlch(52.73, 68.62, 299.98°)
OKLaboklab(60.63% 0.0413 -0.1694)
OKLCHoklch(60.63% 0.174 283.7)
XYZxyz(27.4603, 20.8007, 76.6816)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE5 #DBE56E
analogous
#6EA0E5 #786EE5 #B46EE5
triadic
#786EE5 #E5786E #6EE578
tetradic
#786EE5 #E56EA0 #DBE56E #6EE5B4
square
#786EE5 #E56EA0 #DBE56E #6EE5B4
split-complementary
#786EE5 #E5B46E #A0E56E
monochromatic
#2E21B8 #483ADC #786EE5 #A8A2EE #D9D6F8

Accessibility & contrast

On white

4.07
#786EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#786EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE5#FFFFFF#000000##000000
##786EE51.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3282E9
Deuteranopia (green-blind)
#2B7AE2
Tritanopia (blue-blind)
#52889F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee5;
/* rgb */ color: rgb(120, 110, 229);
/* oklch */ color: oklch(60.6% 0.174 283.7);
Tailwind
colors: {
  custom: {
    50: '#a698ee',
    500: '#786ee5',
    950: '#000000',
  },
}
SCSS
$custom: #786ee5;
$custom-light: #a698ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee5",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 229
  },
  "hsl": {
    "h": 245.042,
    "s": 69.591,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60631,
    "c": 0.17433,
    "h": 283.7
  },
  "luminance": 0.20802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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