#786AF7#786AF7

#786AF7 is a mid, highly saturated blue. Relative luminance 0.210; OKLCH L 61.2% C 0.203 H 283.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#786AF7
RGBrgb(120, 106, 247)
HSLhsl(246, 90%, 69%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51.4%, 57.1%, 0%, 3.1%)
CIE-LABlab(52.97, 41.96, -69.12)
CIE-LCHlch(52.97, 80.86, 301.26°)
OKLaboklab(61.18% 0.046 -0.1979)
OKLCHoklch(61.18% 0.203 283.1)
XYZxyz(29.6832, 21.0149, 90.4698)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF7 #E9F76A
analogous
#6AA3F7 #786AF7 #BE6AF7
triadic
#786AF7 #F7786A #6AF778
tetradic
#786AF7 #F76AA3 #E9F76A #6AF7BE
square
#786AF7 #F76AA3 #E9F76A #6AF7BE
split-complementary
#786AF7 #F7BE6A #A3F76A
monochromatic
#200CDB #4330F4 #786AF7 #ADA4FA #E1DEFD

Accessibility & contrast

On white

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

On black

5.20
#786AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF7#FFFFFF#000000##000000
##786AF71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#448BA6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af7;
/* rgb */ color: rgb(120, 106, 247);
/* oklch */ color: oklch(61.2% 0.203 283.1);
Tailwind
colors: {
  custom: {
    50: '#a895fb',
    500: '#786af7',
    950: '#000000',
  },
}
SCSS
$custom: #786af7;
$custom-light: #a895fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786af7",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 247
  },
  "hsl": {
    "h": 245.957,
    "s": 89.809,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61176,
    "c": 0.20314,
    "h": 283.1
  },
  "luminance": 0.21017
}

Semantic roles & 50–950 ramp

primary
#786AF7
secondary
#EFF3CA
accent
#E600CF
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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