#786CE7#786CE7

#786CE7 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.4% C 0.180 H 284.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#786CE7
RGBrgb(120, 108, 231)
HSLhsl(246, 72%, 66%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(48.1%, 53.2%, 0%, 9.4%)
CIE-LABlab(52.38, 36.06, -61.12)
CIE-LCHlch(52.38, 70.96, 300.54°)
OKLaboklab(60.41% 0.0436 -0.1743)
OKLCHoklch(60.41% 0.18 284.1)
XYZxyz(27.5278, 20.4864, 78.0896)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE7 #DBE76C
analogous
#6C9EE7 #786CE7 #B66CE7
triadic
#786CE7 #E7786C #6CE778
tetradic
#786CE7 #E76C9E #DBE76C #6CE7B6
square
#786CE7 #E76C9E #DBE76C #6CE7B6
split-complementary
#786CE7 #E7B66C #9EE76C
monochromatic
#2E1EBA #4837DE #786CE7 #A8A1F0 #D9D5F8

Accessibility & contrast

On white

4.12
#786CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#786CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE7#FFFFFF#000000##000000
##786CE71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A81EB
Deuteranopia (green-blind)
#2279E4
Tritanopia (blue-blind)
#51879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ce7;
/* rgb */ color: rgb(120, 108, 231);
/* oklch */ color: oklch(60.4% 0.180 284.1);
Tailwind
colors: {
  custom: {
    50: '#a696ef',
    500: '#786ce7',
    950: '#000000',
  },
}
SCSS
$custom: #786ce7;
$custom-light: #a696ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 231
  },
  "hsl": {
    "h": 245.854,
    "s": 71.93,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60412,
    "c": 0.17971,
    "h": 284.1
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

primary
#786CE7
secondary
#E7EBC3
accent
#D412C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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