#786CBB#786CBB

#786CBB is a mid, moderate blue. Relative luminance 0.183; OKLCH L 57.7% C 0.119 H 289.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#786CBB
RGBrgb(120, 108, 187)
HSLhsl(249, 37%, 58%)
HSVhsv(249, 42%, 73%)
CMYKcmyk(35.8%, 42.2%, 0%, 26.7%)
CIE-LABlab(49.86, 23.45, -40.09)
CIE-LCHlch(49.86, 46.45, 300.32°)
OKLaboklab(57.71% 0.039 -0.1127)
OKLCHoklch(57.71% 0.119 289.1)
XYZxyz(22.0755, 18.3055, 49.3743)
Luminance0.1831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CBB #AFBB6C
analogous
#6C87BB #786CBB #9F6CBB
triadic
#786CBB #BB786C #6CBB78
tetradic
#786CBB #BB6C87 #AFBB6C #6CBB9F
square
#786CBB #BB6C87 #AFBB6C #6CBB9F
split-complementary
#786CBB #BB9F6C #87BB6C
monochromatic
#403776 #574AA0 #786CBB #9E96CE #C5C0E2

Accessibility & contrast

On white

4.51
#786CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#786CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CBB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CBB#FFFFFF#000000##000000
##786CBB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5278BE
Deuteranopia (green-blind)
#5275B9
Tritanopia (blue-blind)
#677B8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cbb;
/* rgb */ color: rgb(120, 108, 187);
/* oklch */ color: oklch(57.7% 0.119 289.1);
Tailwind
colors: {
  custom: {
    50: '#a196d0',
    500: '#786cbb',
    950: '#000000',
  },
}
SCSS
$custom: #786cbb;
$custom-light: #a196d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786cbb",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 187
  },
  "hsl": {
    "h": 249.114,
    "s": 36.744,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57705,
    "c": 0.11926,
    "h": 289.1
  },
  "luminance": 0.18306
}

Semantic roles & 50–950 ramp

primary
#786CBB
secondary
#CCD1B2
accent
#CD5BBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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