#786CBE#786CBE

#786CBE is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.9% C 0.124 H 288.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786CBE
RGBrgb(120, 108, 190)
HSLhsl(249, 39%, 58%)
HSVhsv(249, 43%, 75%)
CMYKcmyk(36.8%, 43.2%, 0%, 25.5%)
CIE-LABlab(50.02, 24.28, -41.58)
CIE-LCHlch(50.02, 48.15, 300.28°)
OKLaboklab(57.87% 0.0395 -0.117)
OKLCHoklch(57.87% 0.124 288.6)
XYZxyz(22.4000, 18.4353, 51.0834)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CBE #B2BE6C
analogous
#6C89BE #786CBE #A16CBE
triadic
#786CBE #BE786C #6CBE78
tetradic
#786CBE #BE6C89 #B2BE6C #6CBEA1
square
#786CBE #BE6C89 #B2BE6C #6CBEA1
split-complementary
#786CBE #BEA16C #89BE6C
monochromatic
#40367A #5649A4 #786CBE #9F96D1 #C6C1E4

Accessibility & contrast

On white

4.48
#786CBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#786CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CBE
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CBE#FFFFFF#000000##000000
##786CBE1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5079C1
Deuteranopia (green-blind)
#5075BC
Tritanopia (blue-blind)
#667C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cbe;
/* rgb */ color: rgb(120, 108, 190);
/* oklch */ color: oklch(57.9% 0.124 288.6);
Tailwind
colors: {
  custom: {
    50: '#a296d2',
    500: '#786cbe',
    950: '#000000',
  },
}
SCSS
$custom: #786cbe;
$custom-light: #a296d2;
$custom-dark: #000000;
JSON
{
  "hex": "#786cbe",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 190
  },
  "hsl": {
    "h": 248.78,
    "s": 38.679,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57873,
    "c": 0.12352,
    "h": 288.6
  },
  "luminance": 0.18436
}

Semantic roles & 50–950 ramp

primary
#786CBE
secondary
#CED3B3
accent
#CF59BD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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