#786CC3#786CC3

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

Color values

HEX#786CC3
RGBrgb(120, 108, 195)
HSLhsl(248, 42%, 59%)
HSVhsv(248, 45%, 76%)
CMYKcmyk(38.5%, 44.6%, 0%, 23.5%)
CIE-LABlab(50.28, 25.67, -44.04)
CIE-LCHlch(50.28, 50.97, 300.24°)
OKLaboklab(58.16% 0.0403 -0.1242)
OKLCHoklch(58.16% 0.131 288)
XYZxyz(22.9559, 18.6576, 54.0110)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC3 #B7C36C
analogous
#6C8CC3 #786CC3 #A46CC3
triadic
#786CC3 #C3786C #6CC378
tetradic
#786CC3 #C36C8C #B7C36C #6CC3A4
square
#786CC3 #C36C8C #B7C36C #6CC3A4
split-complementary
#786CC3 #C3A46C #8CC36C
monochromatic
#3F3480 #5446AC #786CC3 #A097D5 #C8C3E6

Accessibility & contrast

On white

4.44
#786CC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#786CC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC3#FFFFFF#000000##000000
##786CC31.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7AC6
Deuteranopia (green-blind)
#4D75C1
Tritanopia (blue-blind)
#647D8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc3;
/* rgb */ color: rgb(120, 108, 195);
/* oklch */ color: oklch(58.2% 0.131 288.0);
Tailwind
colors: {
  custom: {
    50: '#a296d5',
    500: '#786cc3',
    950: '#000000',
  },
}
SCSS
$custom: #786cc3;
$custom-light: #a296d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 195
  },
  "hsl": {
    "h": 248.276,
    "s": 42.029,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5816,
    "c": 0.13058,
    "h": 288
  },
  "luminance": 0.18658
}

Semantic roles & 50–950 ramp

primary
#786CC3
secondary
#D2D6B4
accent
#D256C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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