#786DCA#786DCA

#786DCA is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.8% C 0.139 H 286.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#786DCA
RGBrgb(120, 109, 202)
HSLhsl(247, 47%, 61%)
HSVhsv(247, 46%, 79%)
CMYKcmyk(40.6%, 46%, 0%, 20.8%)
CIE-LABlab(50.91, 27.05, -47.05)
CIE-LCHlch(50.91, 54.27, 299.89°)
OKLaboklab(58.76% 0.04 -0.133)
OKLCHoklch(58.76% 0.139 286.7)
XYZxyz(23.8720, 19.1938, 58.3126)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DCA #BFCA6D
analogous
#6D90CA #786DCA #A66DCA
triadic
#786DCA #CA786D #6DCA78
tetradic
#786DCA #CA6D90 #BFCA6D #6DCAA6
square
#786DCA #CA6D90 #BFCA6D #6DCAA6
split-complementary
#786DCA #CAA66D #90CA6D
monochromatic
#3D328A #5043B7 #786DCA #A29ADA #CBC7EB

Accessibility & contrast

On white

4.34
#786DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#786DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DCA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DCA#FFFFFF#000000##000000
##786DCA1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCD
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#618092
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dca;
/* rgb */ color: rgb(120, 109, 202);
/* oklch */ color: oklch(58.8% 0.139 286.7);
Tailwind
colors: {
  custom: {
    50: '#a397da',
    500: '#786dca',
    950: '#000000',
  },
}
SCSS
$custom: #786dca;
$custom-light: #a397da;
$custom-dark: #000000;
JSON
{
  "hex": "#786dca",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 202
  },
  "hsl": {
    "h": 247.097,
    "s": 46.734,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.13889,
    "h": 286.7
  },
  "luminance": 0.19195
}

Semantic roles & 50–950 ramp

primary
#786DCA
secondary
#D7DBB8
accent
#BA2CA9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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