#786ECE#786ECE

#786ECE is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.2% C 0.143 H 285.9°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#786ECE
RGBrgb(120, 110, 206)
HSLhsl(246, 49%, 62%)
HSVhsv(246, 47%, 81%)
CMYKcmyk(41.7%, 46.6%, 0%, 19.2%)
CIE-LABlab(51.38, 27.59, -48.59)
CIE-LCHlch(51.38, 55.87, 299.59°)
OKLaboklab(59.18% 0.0392 -0.1375)
OKLCHoklch(59.18% 0.143 285.9)
XYZxyz(24.4591, 19.6002, 60.8750)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECE #C4CE6E
analogous
#6E94CE #786ECE #A86ECE
triadic
#786ECE #CE786E #6ECE78
tetradic
#786ECE #CE6E94 #C4CE6E #6ECEA8
square
#786ECE #CE6E94 #C4CE6E #6ECEA8
split-complementary
#786ECE #CEA86E #94CE6E
monochromatic
#3B3191 #4D40BE #786ECE #A39CDD #CDC9ED

Accessibility & contrast

On white

4.27
#786ECE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#786ECE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECE
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECE#FFFFFF#000000##000000
##786ECE1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#497DD2
Deuteranopia (green-blind)
#4778CC
Tritanopia (blue-blind)
#5F8294
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786ece;
/* rgb */ color: rgb(120, 110, 206);
/* oklch */ color: oklch(59.2% 0.143 285.9);
Tailwind
colors: {
  custom: {
    50: '#a397dd',
    500: '#786ece',
    950: '#000000',
  },
}
SCSS
$custom: #786ece;
$custom-light: #a397dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ece",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 206
  },
  "hsl": {
    "h": 246.25,
    "s": 49.485,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59184,
    "c": 0.143,
    "h": 285.9
  },
  "luminance": 0.19601
}

Semantic roles & 50–950 ramp

primary
#786ECE
secondary
#DADEBA
accent
#BD29AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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