#786FE4#786FE4

#786FE4 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.7% C 0.172 H 283.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786FE4
RGBrgb(120, 111, 228)
HSLhsl(245, 68%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(47.4%, 51.3%, 0%, 10.6%)
CIE-LABlab(52.91, 33.40, -58.59)
CIE-LCHlch(52.91, 67.44, 299.69°)
OKLaboklab(60.74% 0.0401 -0.1669)
OKLCHoklch(60.74% 0.172 283.5)
XYZxyz(27.4296, 20.9621, 75.9845)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE4 #DBE46F
analogous
#6FA1E4 #786FE4 #B36FE4
triadic
#786FE4 #E4786F #6FE478
tetradic
#786FE4 #E46FA1 #DBE46F #6FE4B3
square
#786FE4 #E46FA1 #DBE46F #6FE4B3
split-complementary
#786FE4 #E4B36F #A1E46F
monochromatic
#2E22B6 #483BDA #786FE4 #A8A3EE #D9D6F7

Accessibility & contrast

On white

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

On black

5.19
#786FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE4#FFFFFF#000000##000000
##786FE41.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786fe4;
/* rgb */ color: rgb(120, 111, 228);
/* oklch */ color: oklch(60.7% 0.172 283.5);
Tailwind
colors: {
  custom: {
    50: '#a598ed',
    500: '#786fe4',
    950: '#000000',
  },
}
SCSS
$custom: #786fe4;
$custom-light: #a598ed;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe4",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 228
  },
  "hsl": {
    "h": 244.615,
    "s": 68.421,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60744,
    "c": 0.17163,
    "h": 283.5
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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