#786FE0#786FE0

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

Color values

HEX#786FE0
RGBrgb(120, 111, 224)
HSLhsl(245, 65%, 66%)
HSVhsv(245, 50%, 88%)
CMYKcmyk(46.4%, 50.4%, 0%, 12.2%)
CIE-LABlab(52.67, 32.22, -56.73)
CIE-LCHlch(52.67, 65.24, 299.60°)
OKLaboklab(60.49% 0.0398 -0.1614)
OKLCHoklch(60.49% 0.166 283.9)
XYZxyz(26.8807, 20.7425, 73.0939)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE0 #D7E06F
analogous
#6F9EE0 #786FE0 #B06FE0
triadic
#786FE0 #E0786F #6FE078
tetradic
#786FE0 #E06F9E #D7E06F #6FE0B0
square
#786FE0 #E06F9E #D7E06F #6FE0B0
split-complementary
#786FE0 #E0B06F #9EE06F
monochromatic
#3126AF #493DD5 #786FE0 #A7A1EB #D6D4F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786FE0#FFFFFF#000000##000000
##786FE01.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)
#3B81E4
Deuteranopia (green-blind)
#357ADE
Tritanopia (blue-blind)
#55879D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fe0;
/* rgb */ color: rgb(120, 111, 224);
/* oklch */ color: oklch(60.5% 0.166 283.9);
Tailwind
colors: {
  custom: {
    50: '#a598ea',
    500: '#786fe0',
    950: '#000000',
  },
}
SCSS
$custom: #786fe0;
$custom-light: #a598ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe0",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 224
  },
  "hsl": {
    "h": 244.779,
    "s": 64.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60486,
    "c": 0.16625,
    "h": 283.9
  },
  "luminance": 0.20744
}

Semantic roles & 50–950 ramp

primary
#786FE0
secondary
#E5E8C3
accent
#CC19BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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