#786AF6#786AF6

#786AF6 is a mid, highly saturated blue. Relative luminance 0.210; OKLCH L 61.1% C 0.202 H 283.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786AF6
RGBrgb(120, 106, 246)
HSLhsl(246, 89%, 69%)
HSVhsv(246, 57%, 96%)
CMYKcmyk(51.2%, 56.9%, 0%, 3.5%)
CIE-LABlab(52.90, 41.67, -68.67)
CIE-LCHlch(52.90, 80.32, 301.25°)
OKLaboklab(61.11% 0.046 -0.1965)
OKLCHoklch(61.11% 0.202 283.2)
XYZxyz(29.5293, 20.9533, 89.6593)
Luminance0.2095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF6 #E8F66A
analogous
#6AA2F6 #786AF6 #BE6AF6
triadic
#786AF6 #F6786A #6AF678
tetradic
#786AF6 #F66AA2 #E8F66A #6AF6BE
square
#786AF6 #F66AA2 #E8F66A #6AF6BE
split-complementary
#786AF6 #F6BE6A #A2F66A
monochromatic
#210DD9 #4430F3 #786AF6 #ACA4F9 #E1DDFD

Accessibility & contrast

On white

4.05
#786AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#786AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF6
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF6#FFFFFF#000000##000000
##786AF61.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FB
Deuteranopia (green-blind)
#007AF3
Tritanopia (blue-blind)
#458AA6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af6;
/* rgb */ color: rgb(120, 106, 246);
/* oklch */ color: oklch(61.1% 0.202 283.2);
Tailwind
colors: {
  custom: {
    50: '#a895fa',
    500: '#786af6',
    950: '#000000',
  },
}
SCSS
$custom: #786af6;
$custom-light: #a895fa;
$custom-dark: #000000;
JSON
{
  "hex": "#786af6",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 246
  },
  "hsl": {
    "h": 246,
    "s": 88.608,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61105,
    "c": 0.20187,
    "h": 283.2
  },
  "luminance": 0.20955
}

Semantic roles & 50–950 ramp

primary
#786AF6
secondary
#EEF2C9
accent
#E500CE
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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