#786CE5#786CE5

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

Color values

HEX#786CE5
RGBrgb(120, 108, 229)
HSLhsl(246, 70%, 66%)
HSVhsv(246, 53%, 90%)
CMYKcmyk(47.6%, 52.8%, 0%, 10.2%)
CIE-LABlab(52.26, 35.47, -60.20)
CIE-LCHlch(52.26, 69.87, 300.51°)
OKLaboklab(60.28% 0.0436 -0.1716)
OKLCHoklch(60.28% 0.177 284.2)
XYZxyz(27.2470, 20.3740, 76.6104)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE5 #D9E56C
analogous
#6C9CE5 #786CE5 #B46CE5
triadic
#786CE5 #E5786C #6CE578
tetradic
#786CE5 #E56C9C #D9E56C #6CE5B4
square
#786CE5 #E56C9C #D9E56C #6CE5B4
split-complementary
#786CE5 #E5B46C #9CE56C
monochromatic
#2F20B6 #4838DC #786CE5 #A8A0EE #D8D4F7

Accessibility & contrast

On white

4.14
#786CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#786CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE5#FFFFFF#000000##000000
##786CE51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D80E9
Deuteranopia (green-blind)
#2679E2
Tritanopia (blue-blind)
#52879E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ce5;
/* rgb */ color: rgb(120, 108, 229);
/* oklch */ color: oklch(60.3% 0.177 284.2);
Tailwind
colors: {
  custom: {
    50: '#a696ee',
    500: '#786ce5',
    950: '#000000',
  },
}
SCSS
$custom: #786ce5;
$custom-light: #a696ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce5",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 229
  },
  "hsl": {
    "h": 245.95,
    "s": 69.942,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.17706,
    "h": 284.2
  },
  "luminance": 0.20375
}

Semantic roles & 50–950 ramp

primary
#786CE5
secondary
#E6EAC3
accent
#D214BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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