#786DBC#786DBC

#786DBC is a mid, moderate blue. Relative luminance 0.186; OKLCH L 58.0% C 0.119 H 288.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#786DBC
RGBrgb(120, 109, 188)
HSLhsl(248, 37%, 58%)
HSVhsv(248, 42%, 74%)
CMYKcmyk(36.2%, 42%, 0%, 26.3%)
CIE-LABlab(50.17, 23.12, -40.19)
CIE-LCHlch(50.17, 46.37, 299.91°)
OKLaboklab(57.95% 0.0378 -0.113)
OKLCHoklch(57.95% 0.119 288.5)
XYZxyz(22.2890, 18.5606, 49.9754)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DBC #B1BC6D
analogous
#6D89BC #786DBC #9F6DBC
triadic
#786DBC #BC786D #6DBC78
tetradic
#786DBC #BC6D89 #B1BC6D #6DBC9F
square
#786DBC #BC6D89 #B1BC6D #6DBC9F
split-complementary
#786DBC #BC9F6D #89BC6D
monochromatic
#403778 #564AA2 #786DBC #9F97CF #C6C1E3

Accessibility & contrast

On white

4.46
#786DBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#786DBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DBC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DBC#FFFFFF#000000##000000
##786DBC1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5379BF
Deuteranopia (green-blind)
#5375BA
Tritanopia (blue-blind)
#667C8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786dbc;
/* rgb */ color: rgb(120, 109, 188);
/* oklch */ color: oklch(58.0% 0.119 288.5);
Tailwind
colors: {
  custom: {
    50: '#a297d0',
    500: '#786dbc',
    950: '#000000',
  },
}
SCSS
$custom: #786dbc;
$custom-light: #a297d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786dbc",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 188
  },
  "hsl": {
    "h": 248.354,
    "s": 37.089,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.11914,
    "h": 288.5
  },
  "luminance": 0.18561
}

Semantic roles & 50–950 ramp

primary
#786DBC
secondary
#CED2B3
accent
#CD5BBD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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