#786DC3#786DC3

#786DC3 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.129 H 287.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#786DC3
RGBrgb(120, 109, 195)
HSLhsl(248, 42%, 60%)
HSVhsv(248, 44%, 76%)
CMYKcmyk(38.5%, 44.1%, 0%, 23.5%)
CIE-LABlab(50.53, 25.07, -43.64)
CIE-LCHlch(50.53, 50.33, 299.88°)
OKLaboklab(58.35% 0.039 -0.123)
OKLCHoklch(58.35% 0.129 287.6)
XYZxyz(23.0620, 18.8698, 54.0463)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC3 #B8C36D
analogous
#6D8DC3 #786DC3 #A36DC3
triadic
#786DC3 #C3786D #6DC378
tetradic
#786DC3 #C36D8D #B8C36D #6DC3A3
square
#786DC3 #C36D8D #B8C36D #6DC3A3
split-complementary
#786DC3 #C3A36D #8DC36D
monochromatic
#3F3581 #5447AC #786DC3 #A098D5 #C8C4E7

Accessibility & contrast

On white

4.40
#786DC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#786DC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC3
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC3#FFFFFF#000000##000000
##786DC31.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7AC6
Deuteranopia (green-blind)
#4E76C1
Tritanopia (blue-blind)
#647E8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dc3;
/* rgb */ color: rgb(120, 109, 195);
/* oklch */ color: oklch(58.3% 0.129 287.6);
Tailwind
colors: {
  custom: {
    50: '#a297d5',
    500: '#786dc3',
    950: '#000000',
  },
}
SCSS
$custom: #786dc3;
$custom-light: #a297d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc3",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 195
  },
  "hsl": {
    "h": 247.674,
    "s": 41.748,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58349,
    "c": 0.12907,
    "h": 287.6
  },
  "luminance": 0.1887
}

Semantic roles & 50–950 ramp

primary
#786DC3
secondary
#D2D7B5
accent
#D256C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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