#786CBF#786CBF

#786CBF is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.9% C 0.125 H 288.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786CBF
RGBrgb(120, 108, 191)
HSLhsl(249, 39%, 59%)
HSVhsv(249, 43%, 75%)
CMYKcmyk(37.2%, 43.5%, 0%, 25.1%)
CIE-LABlab(50.07, 24.55, -42.07)
CIE-LCHlch(50.07, 48.71, 300.27°)
OKLaboklab(57.93% 0.0397 -0.1185)
OKLCHoklch(57.93% 0.125 288.5)
XYZxyz(22.5097, 18.4791, 51.6610)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CBF #B3BF6C
analogous
#6C89BF #786CBF #A16CBF
triadic
#786CBF #BF786C #6CBF78
tetradic
#786CBF #BF6C89 #B3BF6C #6CBFA1
square
#786CBF #BF6C89 #B3BF6C #6CBFA1
split-complementary
#786CBF #BFA16C #89BF6C
monochromatic
#40367B #5648A6 #786CBF #9F97D2 #C6C1E4

Accessibility & contrast

On white

4.47
#786CBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#786CBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CBF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CBF#FFFFFF#000000##000000
##786CBF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5079C2
Deuteranopia (green-blind)
#5075BD
Tritanopia (blue-blind)
#657C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cbf;
/* rgb */ color: rgb(120, 108, 191);
/* oklch */ color: oklch(57.9% 0.125 288.5);
Tailwind
colors: {
  custom: {
    50: '#a296d3',
    500: '#786cbf',
    950: '#000000',
  },
}
SCSS
$custom: #786cbf;
$custom-light: #a296d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786cbf",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 191
  },
  "hsl": {
    "h": 248.675,
    "s": 39.336,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5793,
    "c": 0.12494,
    "h": 288.5
  },
  "luminance": 0.1848
}

Semantic roles & 50–950 ramp

primary
#786CBF
secondary
#CFD4B3
accent
#CF59BE
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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