#786BBC#786BBC

#786BBC is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.6% C 0.122 H 289.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#786BBC
RGBrgb(120, 107, 188)
HSLhsl(250, 38%, 58%)
HSVhsv(250, 43%, 74%)
CMYKcmyk(36.2%, 43.1%, 0%, 26.3%)
CIE-LABlab(49.66, 24.32, -40.99)
CIE-LCHlch(49.66, 47.66, 300.69°)
OKLaboklab(57.57% 0.0405 -0.1153)
OKLCHoklch(57.57% 0.122 289.4)
XYZxyz(22.0781, 18.1387, 49.9051)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BBC #AFBC6B
analogous
#6B86BC #786BBC #A16BBC
triadic
#786BBC #BC786B #6BBC78
tetradic
#786BBC #BC6B86 #AFBC6B #6BBCA1
square
#786BBC #BC6B86 #AFBC6B #6BBCA1
split-complementary
#786BBC #BCA16B #86BC6B
monochromatic
#403677 #5749A1 #786BBC #9E95CF #C5BFE2

Accessibility & contrast

On white

4.54
#786BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#786BBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BBC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BBC#FFFFFF#000000##000000
##786BBC1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5078BF
Deuteranopia (green-blind)
#5074BA
Tritanopia (blue-blind)
#677B8A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bbc;
/* rgb */ color: rgb(120, 107, 188);
/* oklch */ color: oklch(57.6% 0.122 289.4);
Tailwind
colors: {
  custom: {
    50: '#a295d0',
    500: '#786bbc',
    950: '#000000',
  },
}
SCSS
$custom: #786bbc;
$custom-light: #a295d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786bbc",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 188
  },
  "hsl": {
    "h": 249.63,
    "s": 37.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.12223,
    "h": 289.4
  },
  "luminance": 0.18139
}

Semantic roles & 50–950 ramp

primary
#786BBC
secondary
#CCD2B1
accent
#CE5ABB
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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