#786CE6#786CE6

#786CE6 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.3% C 0.178 H 284.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#786CE6
RGBrgb(120, 108, 230)
HSLhsl(246, 71%, 66%)
HSVhsv(246, 53%, 90%)
CMYKcmyk(47.8%, 53%, 0%, 9.8%)
CIE-LABlab(52.32, 35.76, -60.66)
CIE-LCHlch(52.32, 70.42, 300.52°)
OKLaboklab(60.35% 0.0436 -0.173)
OKLCHoklch(60.35% 0.178 284.1)
XYZxyz(27.3870, 20.4300, 77.3479)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE6 #DAE66C
analogous
#6C9DE6 #786CE6 #B56CE6
triadic
#786CE6 #E6786C #6CE678
tetradic
#786CE6 #E66C9D #DAE66C #6CE6B5
square
#786CE6 #E66C9D #DAE66C #6CE6B5
split-complementary
#786CE6 #E6B56C #9DE66C
monochromatic
#2E1FB8 #4838DD #786CE6 #A8A0EF #D8D5F8

Accessibility & contrast

On white

4.13
#786CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#786CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE6#FFFFFF#000000##000000
##786CE61.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B81EA
Deuteranopia (green-blind)
#2479E3
Tritanopia (blue-blind)
#51879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ce6;
/* rgb */ color: rgb(120, 108, 230);
/* oklch */ color: oklch(60.3% 0.178 284.1);
Tailwind
colors: {
  custom: {
    50: '#a696ef',
    500: '#786ce6',
    950: '#000000',
  },
}
SCSS
$custom: #786ce6;
$custom-light: #a696ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce6",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 230
  },
  "hsl": {
    "h": 245.902,
    "s": 70.93,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60345,
    "c": 0.17839,
    "h": 284.1
  },
  "luminance": 0.20431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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