#786EE8#786EE8

#786EE8 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.8% C 0.178 H 283.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786EE8
RGBrgb(120, 110, 232)
HSLhsl(245, 73%, 67%)
HSVhsv(245, 53%, 91%)
CMYKcmyk(48.3%, 52.6%, 0%, 9%)
CIE-LABlab(52.92, 35.17, -60.82)
CIE-LCHlch(52.92, 70.26, 300.04°)
OKLaboklab(60.83% 0.0415 -0.1734)
OKLCHoklch(60.83% 0.178 283.4)
XYZxyz(27.8828, 20.9697, 78.9067)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE8 #DEE86E
analogous
#6EA1E8 #786EE8 #B56EE8
triadic
#786EE8 #E8786E #6EE878
tetradic
#786EE8 #E86EA1 #DEE86E #6EE8B5
square
#786EE8 #E86EA1 #DEE86E #6EE8B5
split-complementary
#786EE8 #E8B56E #A1E86E
monochromatic
#2B1EBE #4739E0 #786EE8 #A9A3F0 #DAD8F9

Accessibility & contrast

On white

4.04
#786EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#786EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE8#FFFFFF#000000##000000
##786EE81.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E82EC
Deuteranopia (green-blind)
#267AE5
Tritanopia (blue-blind)
#5089A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee8;
/* rgb */ color: rgb(120, 110, 232);
/* oklch */ color: oklch(60.8% 0.178 283.4);
Tailwind
colors: {
  custom: {
    50: '#a698f0',
    500: '#786ee8',
    950: '#000000',
  },
}
SCSS
$custom: #786ee8;
$custom-light: #a698f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee8",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 232
  },
  "hsl": {
    "h": 244.918,
    "s": 72.619,
    "l": 67.059
  },
  "oklch": {
    "l": 0.6083,
    "c": 0.17833,
    "h": 283.4
  },
  "luminance": 0.20971
}

Semantic roles & 50–950 ramp

primary
#786EE8
secondary
#E9ECC6
accent
#D511C5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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