#786FF6#786FF6

#786FF6 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 62.0% C 0.195 H 282.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#786FF6
RGBrgb(120, 111, 246)
HSLhsl(244, 88%, 70%)
HSVhsv(244, 55%, 96%)
CMYKcmyk(51.2%, 54.9%, 0%, 3.5%)
CIE-LABlab(54.04, 38.75, -66.82)
CIE-LCHlch(54.04, 77.25, 300.11°)
OKLaboklab(61.95% 0.0409 -0.1911)
OKLCHoklch(61.95% 0.195 282.1)
XYZxyz(30.0596, 22.0141, 89.8361)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FF6 #EDF66F
analogous
#6FAAF6 #786FF6 #BB6FF6
triadic
#786FF6 #F6786F #6FF678
tetradic
#786FF6 #F66FAA #EDF66F #6FF6BB
square
#786FF6 #F66FAA #EDF66F #6FF6BB
split-complementary
#786FF6 #F6BB6F #AAF66F
monochromatic
#1C0EDD #4235F2 #786FF6 #AEA9FA #E4E2FD

Accessibility & contrast

On white

3.89
#786FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#786FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FF6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FF6#FFFFFF#000000##000000
##786FF61.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1486FB
Deuteranopia (green-blind)
#007CF3
Tritanopia (blue-blind)
#458EA8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ff6;
/* rgb */ color: rgb(120, 111, 246);
/* oklch */ color: oklch(62.0% 0.195 282.1);
Tailwind
colors: {
  custom: {
    50: '#a898fa',
    500: '#786ff6',
    950: '#000000',
  },
}
SCSS
$custom: #786ff6;
$custom-light: #a898fa;
$custom-dark: #000000;
JSON
{
  "hex": "#786ff6",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 246
  },
  "hsl": {
    "h": 244,
    "s": 88.235,
    "l": 70
  },
  "oklch": {
    "l": 0.61952,
    "c": 0.1954,
    "h": 282.1
  },
  "luminance": 0.22016
}

Semantic roles & 50–950 ramp

primary
#786FF6
secondary
#F1F3CE
accent
#E501D6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #786FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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