#786FCE#786FCE

#786FCE is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.142 H 285.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786FCE
RGBrgb(120, 111, 206)
HSLhsl(246, 49%, 62%)
HSVhsv(246, 46%, 81%)
CMYKcmyk(41.7%, 46.1%, 0%, 19.2%)
CIE-LABlab(51.63, 26.99, -48.19)
CIE-LCHlch(51.63, 55.24, 299.25°)
OKLaboklab(59.37% 0.038 -0.1364)
OKLCHoklch(59.37% 0.142 285.6)
XYZxyz(24.5676, 19.8172, 60.9112)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCE #C5CE6F
analogous
#6F96CE #786FCE #A86FCE
triadic
#786FCE #CE786F #6FCE78
tetradic
#786FCE #CE6F96 #C5CE6F #6FCEA8
square
#786FCE #CE6F96 #C5CE6F #6FCEA8
split-complementary
#786FCE #CEA86F #96CE6F
monochromatic
#3A3191 #4D41BE #786FCE #A39DDE #CECAED

Accessibility & contrast

On white

4.23
#786FCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#786FCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCE#FFFFFF#000000##000000
##786FCE1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ED1
Deuteranopia (green-blind)
#4878CC
Tritanopia (blue-blind)
#5F8295
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fce;
/* rgb */ color: rgb(120, 111, 206);
/* oklch */ color: oklch(59.4% 0.142 285.6);
Tailwind
colors: {
  custom: {
    50: '#a398dd',
    500: '#786fce',
    950: '#000000',
  },
}
SCSS
$custom: #786fce;
$custom-light: #a398dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786fce",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 206
  },
  "hsl": {
    "h": 245.684,
    "s": 49.223,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59371,
    "c": 0.14154,
    "h": 285.6
  },
  "luminance": 0.19818
}

Semantic roles & 50–950 ramp

primary
#786FCE
secondary
#DBDEBB
accent
#BD29AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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