#786BC2#786BC2

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

Color values

HEX#786BC2
RGBrgb(120, 107, 194)
HSLhsl(249, 42%, 59%)
HSVhsv(249, 45%, 76%)
CMYKcmyk(38.1%, 44.8%, 0%, 23.9%)
CIE-LABlab(49.98, 25.99, -43.94)
CIE-LCHlch(49.98, 51.05, 300.60°)
OKLaboklab(57.91% 0.0414 -0.1239)
OKLCHoklch(57.91% 0.131 288.5)
XYZxyz(22.7384, 18.4028, 53.3825)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC2 #B5C26B
analogous
#6B8AC2 #786BC2 #A46BC2
triadic
#786BC2 #C2786B #6BC278
tetradic
#786BC2 #C26B8A #B5C26B #6BC2A4
square
#786BC2 #C26B8A #B5C26B #6BC2A4
split-complementary
#786BC2 #C2A46B #8AC26B
monochromatic
#3F347E #5546AA #786BC2 #A096D4 #C7C2E6

Accessibility & contrast

On white

4.49
#786BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#786BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC2#FFFFFF#000000##000000
##786BC21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#4C75C0
Tritanopia (blue-blind)
#647C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc2;
/* rgb */ color: rgb(120, 107, 194);
/* oklch */ color: oklch(57.9% 0.131 288.5);
Tailwind
colors: {
  custom: {
    50: '#a295d5',
    500: '#786bc2',
    950: '#000000',
  },
}
SCSS
$custom: #786bc2;
$custom-light: #a295d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 194
  },
  "hsl": {
    "h": 248.966,
    "s": 41.627,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57913,
    "c": 0.13068,
    "h": 288.5
  },
  "luminance": 0.18404
}

Semantic roles & 50–950 ramp

primary
#786BC2
secondary
#D0D5B3
accent
#D156BF
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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