#786AE9#786AE9

#786AE9 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.2% C 0.185 H 284.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#786AE9
RGBrgb(120, 106, 233)
HSLhsl(247, 74%, 66%)
HSVhsv(247, 55%, 91%)
CMYKcmyk(48.5%, 54.5%, 0%, 8.6%)
CIE-LABlab(52.04, 37.82, -62.79)
CIE-LCHlch(52.04, 73.30, 301.06°)
OKLaboklab(60.2% 0.0459 -0.1792)
OKLCHoklch(60.2% 0.185 284.4)
XYZxyz(27.6034, 20.1830, 79.5162)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE9 #DBE96A
analogous
#6A9CE9 #786AE9 #B86AE9
triadic
#786AE9 #E9786A #6AE978
tetradic
#786AE9 #E96A9C #DBE96A #6AE9B8
square
#786AE9 #E96A9C #DBE96A #6AE9B8
split-complementary
#786AE9 #E9B86A #9CE96A
monochromatic
#2E1CBD #4835E1 #786AE9 #A89FF1 #D9D5F9

Accessibility & contrast

On white

4.17
#786AE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#786AE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE9#FFFFFF#000000##000000
##786AE91.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F80ED
Deuteranopia (green-blind)
#1578E6
Tritanopia (blue-blind)
#4F869F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ae9;
/* rgb */ color: rgb(120, 106, 233);
/* oklch */ color: oklch(60.2% 0.185 284.4);
Tailwind
colors: {
  custom: {
    50: '#a695f1',
    500: '#786ae9',
    950: '#000000',
  },
}
SCSS
$custom: #786ae9;
$custom-light: #a695f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae9",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 233
  },
  "hsl": {
    "h": 246.614,
    "s": 74.269,
    "l": 66.471
  },
  "oklch": {
    "l": 0.602,
    "c": 0.18504,
    "h": 284.4
  },
  "luminance": 0.20184
}

Semantic roles & 50–950 ramp

primary
#786AE9
secondary
#E7ECC3
accent
#D60FC0
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AE9

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

Preview Lab → · Contrast checker → · Palette generator →

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