#786BBE#786BBE

#786BBE is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.7% C 0.125 H 289.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786BBE
RGBrgb(120, 107, 190)
HSLhsl(249, 39%, 58%)
HSVhsv(249, 44%, 75%)
CMYKcmyk(36.8%, 43.7%, 0%, 25.5%)
CIE-LABlab(49.77, 24.88, -41.98)
CIE-LCHlch(49.77, 48.80, 300.65°)
OKLaboklab(57.68% 0.0408 -0.1182)
OKLCHoklch(57.68% 0.125 289.1)
XYZxyz(22.2952, 18.2255, 51.0484)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BBE #B1BE6B
analogous
#6B87BE #786BBE #A16BBE
triadic
#786BBE #BE786B #6BBE78
tetradic
#786BBE #BE6B87 #B1BE6B #6BBEA1
square
#786BBE #BE6B87 #B1BE6B #6BBEA1
split-complementary
#786BBE #BEA16B #87BE6B
monochromatic
#403579 #5648A4 #786BBE #9F96D1 #C6C0E3

Accessibility & contrast

On white

4.52
#786BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#786BBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BBE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BBE#FFFFFF#000000##000000
##786BBE1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F78C1
Deuteranopia (green-blind)
#4F74BC
Tritanopia (blue-blind)
#667B8B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bbe;
/* rgb */ color: rgb(120, 107, 190);
/* oklch */ color: oklch(57.7% 0.125 289.1);
Tailwind
colors: {
  custom: {
    50: '#a295d2',
    500: '#786bbe',
    950: '#000000',
  },
}
SCSS
$custom: #786bbe;
$custom-light: #a295d2;
$custom-dark: #000000;
JSON
{
  "hex": "#786bbe",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 190
  },
  "hsl": {
    "h": 249.398,
    "s": 38.967,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57683,
    "c": 0.12505,
    "h": 289.1
  },
  "luminance": 0.18226
}

Semantic roles & 50–950 ramp

primary
#786BBE
secondary
#CED3B2
accent
#CF59BC
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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