#786CBD#786CBD

#786CBD is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.8% C 0.122 H 288.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#786CBD
RGBrgb(120, 108, 189)
HSLhsl(249, 38%, 58%)
HSVhsv(249, 43%, 74%)
CMYKcmyk(36.5%, 42.9%, 0%, 25.9%)
CIE-LABlab(49.97, 24.00, -41.09)
CIE-LCHlch(49.97, 47.58, 300.29°)
OKLaboklab(57.82% 0.0393 -0.1156)
OKLCHoklch(57.82% 0.122 288.8)
XYZxyz(22.2911, 18.3917, 50.5097)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CBD #B1BD6C
analogous
#6C88BD #786CBD #A06CBD
triadic
#786CBD #BD786C #6CBD78
tetradic
#786CBD #BD6C88 #B1BD6C #6CBDA0
square
#786CBD #BD6C88 #B1BD6C #6CBDA0
split-complementary
#786CBD #BDA06C #88BD6C
monochromatic
#403678 #5649A3 #786CBD #9F96D0 #C6C0E3

Accessibility & contrast

On white

4.49
#786CBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#786CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CBD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CBD#FFFFFF#000000##000000
##786CBD1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#5175BB
Tritanopia (blue-blind)
#667C8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cbd;
/* rgb */ color: rgb(120, 108, 189);
/* oklch */ color: oklch(57.8% 0.122 288.8);
Tailwind
colors: {
  custom: {
    50: '#a296d1',
    500: '#786cbd',
    950: '#000000',
  },
}
SCSS
$custom: #786cbd;
$custom-light: #a296d1;
$custom-dark: #000000;
JSON
{
  "hex": "#786cbd",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 189
  },
  "hsl": {
    "h": 248.889,
    "s": 38.028,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57817,
    "c": 0.1221,
    "h": 288.8
  },
  "luminance": 0.18392
}

Semantic roles & 50–950 ramp

primary
#786CBD
secondary
#CED3B2
accent
#CE5ABD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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