#786DC0#786DC0

#786DC0 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.2% C 0.125 H 288.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786DC0
RGBrgb(120, 109, 192)
HSLhsl(248, 40%, 59%)
HSVhsv(248, 43%, 75%)
CMYKcmyk(37.5%, 43.2%, 0%, 24.7%)
CIE-LABlab(50.38, 24.23, -42.17)
CIE-LCHlch(50.38, 48.63, 299.88°)
OKLaboklab(58.18% 0.0385 -0.1187)
OKLCHoklch(58.18% 0.125 288)
XYZxyz(22.7262, 18.7354, 52.2779)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC0 #B5C06D
analogous
#6D8CC0 #786DC0 #A26DC0
triadic
#786DC0 #C0786D #6DC078
tetradic
#786DC0 #C06D8C #B5C06D #6DC0A2
square
#786DC0 #C06D8C #B5C06D #6DC0A2
split-complementary
#786DC0 #C0A26D #8CC06D
monochromatic
#3F367D #5548A8 #786DC0 #A098D2 #C7C3E5

Accessibility & contrast

On white

4.42
#786DC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#786DC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC0
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC0#FFFFFF#000000##000000
##786DC01.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#517AC3
Deuteranopia (green-blind)
#5076BE
Tritanopia (blue-blind)
#657D8D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dc0;
/* rgb */ color: rgb(120, 109, 192);
/* oklch */ color: oklch(58.2% 0.125 288.0);
Tailwind
colors: {
  custom: {
    50: '#a297d3',
    500: '#786dc0',
    950: '#000000',
  },
}
SCSS
$custom: #786dc0;
$custom-light: #a297d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc0",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 192
  },
  "hsl": {
    "h": 247.952,
    "s": 39.713,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58178,
    "c": 0.12483,
    "h": 288
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

primary
#786DC0
secondary
#D0D5B4
accent
#D058C0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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