#786AE7#786AE7

#786AE7 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.1% C 0.182 H 284.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786AE7
RGBrgb(120, 106, 231)
HSLhsl(247, 72%, 66%)
HSVhsv(247, 54%, 91%)
CMYKcmyk(48.1%, 54.1%, 0%, 9.4%)
CIE-LABlab(51.92, 37.24, -61.87)
CIE-LCHlch(51.92, 72.21, 301.04°)
OKLaboklab(60.06% 0.0459 -0.1766)
OKLCHoklch(60.06% 0.182 284.6)
XYZxyz(27.3193, 20.0693, 78.0201)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE7 #D9E76A
analogous
#6A9AE7 #786AE7 #B66AE7
triadic
#786AE7 #E7786A #6AE778
tetradic
#786AE7 #E76A9A #D9E76A #6AE7B6
square
#786AE7 #E76A9A #D9E76A #6AE7B6
split-complementary
#786AE7 #E7B66A #9AE76A
monochromatic
#2F1EB9 #4835DF #786AE7 #A89FEF #D8D3F8

Accessibility & contrast

On white

4.19
#786AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE7#FFFFFF#000000##000000
##786AE71.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2380EB
Deuteranopia (green-blind)
#1B78E4
Tritanopia (blue-blind)
#51869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ae7;
/* rgb */ color: rgb(120, 106, 231);
/* oklch */ color: oklch(60.1% 0.182 284.6);
Tailwind
colors: {
  custom: {
    50: '#a695ef',
    500: '#786ae7',
    950: '#000000',
  },
}
SCSS
$custom: #786ae7;
$custom-light: #a695ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae7",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 231
  },
  "hsl": {
    "h": 246.72,
    "s": 72.254,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60064,
    "c": 0.18241,
    "h": 284.6
  },
  "luminance": 0.20071
}

Semantic roles & 50–950 ramp

primary
#786AE7
secondary
#E6EBC2
accent
#D411BE
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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