#786FE5#786FE5

#786FE5 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.173 H 283.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#786FE5
RGBrgb(120, 111, 229)
HSLhsl(245, 69%, 67%)
HSVhsv(245, 52%, 90%)
CMYKcmyk(47.6%, 51.5%, 0%, 10.2%)
CIE-LABlab(52.97, 33.70, -59.06)
CIE-LCHlch(52.97, 67.99, 299.71°)
OKLaboklab(60.81% 0.0402 -0.1682)
OKLCHoklch(60.81% 0.173 283.4)
XYZxyz(27.5688, 21.0177, 76.7177)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE5 #DCE56F
analogous
#6FA1E5 #786FE5 #B36FE5
triadic
#786FE5 #E5786F #6FE578
tetradic
#786FE5 #E56FA1 #DCE56F #6FE5B3
square
#786FE5 #E56FA1 #DCE56F #6FE5B3
split-complementary
#786FE5 #E5B36F #A1E56F
monochromatic
#2D21B8 #473BDC #786FE5 #A9A3EE #D9D7F8

Accessibility & contrast

On white

4.04
#786FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#786FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE5#FFFFFF#000000##000000
##786FE51.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3582E9
Deuteranopia (green-blind)
#2E7BE2
Tritanopia (blue-blind)
#52899F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fe5;
/* rgb */ color: rgb(120, 111, 229);
/* oklch */ color: oklch(60.8% 0.173 283.4);
Tailwind
colors: {
  custom: {
    50: '#a598ee',
    500: '#786fe5',
    950: '#000000',
  },
}
SCSS
$custom: #786fe5;
$custom-light: #a598ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 229
  },
  "hsl": {
    "h": 244.576,
    "s": 69.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6081,
    "c": 0.17297,
    "h": 283.4
  },
  "luminance": 0.21019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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