#786FE6#786FE6

#786FE6 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.9% C 0.174 H 283.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#786FE6
RGBrgb(120, 111, 230)
HSLhsl(245, 70%, 67%)
HSVhsv(245, 52%, 90%)
CMYKcmyk(47.8%, 51.7%, 0%, 9.8%)
CIE-LABlab(53.03, 33.99, -59.52)
CIE-LCHlch(53.03, 68.54, 299.73°)
OKLaboklab(60.88% 0.0402 -0.1696)
OKLCHoklch(60.88% 0.174 283.3)
XYZxyz(27.7088, 21.0738, 77.4552)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE6 #DDE66F
analogous
#6FA2E6 #786FE6 #B46FE6
triadic
#786FE6 #E6786F #6FE678
tetradic
#786FE6 #E66FA2 #DDE66F #6FE6B4
square
#786FE6 #E66FA2 #DDE66F #6FE6B4
split-complementary
#786FE6 #E6B46F #A2E66F
monochromatic
#2C20BA #473BDD #786FE6 #A9A3EF #DAD7F8

Accessibility & contrast

On white

4.03
#786FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#786FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE6#FFFFFF#000000##000000
##786FE61.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3482EA
Deuteranopia (green-blind)
#2C7BE3
Tritanopia (blue-blind)
#5189A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786fe6;
/* rgb */ color: rgb(120, 111, 230);
/* oklch */ color: oklch(60.9% 0.174 283.3);
Tailwind
colors: {
  custom: {
    50: '#a698ef',
    500: '#786fe6',
    950: '#000000',
  },
}
SCSS
$custom: #786fe6;
$custom-light: #a698ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe6",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 230
  },
  "hsl": {
    "h": 244.538,
    "s": 70.414,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.1743,
    "h": 283.3
  },
  "luminance": 0.21075
}

Semantic roles & 50–950 ramp

primary
#786FE6
secondary
#E9EBC5
accent
#D213C4
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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