#786AF4#786AF4

#786AF4 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 61.0% C 0.199 H 283.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786AF4
RGBrgb(120, 106, 244)
HSLhsl(246, 86%, 69%)
HSVhsv(246, 57%, 96%)
CMYKcmyk(50.8%, 56.6%, 0%, 4.3%)
CIE-LABlab(52.76, 41.07, -67.77)
CIE-LCHlch(52.76, 79.25, 301.22°)
OKLaboklab(60.96% 0.046 -0.1939)
OKLCHoklch(60.96% 0.199 283.4)
XYZxyz(29.2240, 20.8312, 88.0513)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF4 #E6F46A
analogous
#6AA1F4 #786AF4 #BD6AF4
triadic
#786AF4 #F4786A #6AF478
tetradic
#786AF4 #F46AA1 #E6F46A #6AF4BD
square
#786AF4 #F46AA1 #E6F46A #6AF4BD
split-complementary
#786AF4 #F4BD6A #A1F46A
monochromatic
#2410D4 #4431F0 #786AF4 #ACA3F8 #DFDCFC

Accessibility & contrast

On white

4.06
#786AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#786AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF4#FFFFFF#000000##000000
##786AF41.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F9
Deuteranopia (green-blind)
#0079F1
Tritanopia (blue-blind)
#478AA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af4;
/* rgb */ color: rgb(120, 106, 244);
/* oklch */ color: oklch(61.0% 0.199 283.4);
Tailwind
colors: {
  custom: {
    50: '#a895f9',
    500: '#786af4',
    950: '#000000',
  },
}
SCSS
$custom: #786af4;
$custom-light: #a895f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786af4",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 244
  },
  "hsl": {
    "h": 246.087,
    "s": 86.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.1993,
    "h": 283.4
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#786AF4
secondary
#EDF1C8
accent
#E303CC
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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