#786BBA#786BBA

#786BBA is a mid, moderate blue. Relative luminance 0.181; OKLCH L 57.5% C 0.119 H 289.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#786BBA
RGBrgb(120, 107, 186)
HSLhsl(250, 36%, 57%)
HSVhsv(250, 42%, 73%)
CMYKcmyk(35.5%, 42.5%, 0%, 27.1%)
CIE-LABlab(49.56, 23.77, -40.00)
CIE-LCHlch(49.56, 46.53, 300.73°)
OKLaboklab(57.46% 0.0402 -0.1124)
OKLCHoklch(57.46% 0.119 289.7)
XYZxyz(21.8640, 18.0531, 48.7775)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BBA #ADBA6B
analogous
#6B86BA #786BBA #9F6BBA
triadic
#786BBA #BA786B #6BBA78
tetradic
#786BBA #BA6B86 #ADBA6B #6BBA9F
square
#786BBA #BA6B86 #ADBA6B #6BBA9F
split-complementary
#786BBA #BA9F6B #86BA6B
monochromatic
#403674 #584A9E #786BBA #9E95CD #C4BEE1

Accessibility & contrast

On white

4.55
#786BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#786BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BBA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BBA#FFFFFF#000000##000000
##786BBA1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5177BD
Deuteranopia (green-blind)
#5274B8
Tritanopia (blue-blind)
#677A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bba;
/* rgb */ color: rgb(120, 107, 186);
/* oklch */ color: oklch(57.5% 0.119 289.7);
Tailwind
colors: {
  custom: {
    50: '#a195cf',
    500: '#786bba',
    950: '#000000',
  },
}
SCSS
$custom: #786bba;
$custom-light: #a195cf;
$custom-dark: #000000;
JSON
{
  "hex": "#786bba",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 186
  },
  "hsl": {
    "h": 249.873,
    "s": 36.406,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57458,
    "c": 0.11938,
    "h": 289.7
  },
  "luminance": 0.18054
}

Semantic roles & 50–950 ramp

primary
#786BBA
secondary
#CBD0B0
accent
#CC5BBA
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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