#786BC1#786BC1

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

Color values

HEX#786BC1
RGBrgb(120, 107, 193)
HSLhsl(249, 41%, 59%)
HSVhsv(249, 45%, 76%)
CMYKcmyk(37.8%, 44.6%, 0%, 24.3%)
CIE-LABlab(49.93, 25.71, -43.45)
CIE-LCHlch(49.93, 50.49, 300.61°)
OKLaboklab(57.86% 0.0413 -0.1225)
OKLCHoklch(57.86% 0.129 288.6)
XYZxyz(22.6264, 18.3580, 52.7931)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC1 #B4C16B
analogous
#6B89C1 #786BC1 #A36BC1
triadic
#786BC1 #C1786B #6BC178
tetradic
#786BC1 #C16B89 #B4C16B #6BC1A3
square
#786BC1 #C16B89 #B4C16B #6BC1A3
split-complementary
#786BC1 #C1A36B #89C16B
monochromatic
#3F347D #5547A8 #786BC1 #9F96D3 #C7C1E5

Accessibility & contrast

On white

4.50
#786BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#786BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC1#FFFFFF#000000##000000
##786BC11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C4
Deuteranopia (green-blind)
#4D75BF
Tritanopia (blue-blind)
#657C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc1;
/* rgb */ color: rgb(120, 107, 193);
/* oklch */ color: oklch(57.9% 0.129 288.6);
Tailwind
colors: {
  custom: {
    50: '#a295d4',
    500: '#786bc1',
    950: '#000000',
  },
}
SCSS
$custom: #786bc1;
$custom-light: #a295d4;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc1",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 193
  },
  "hsl": {
    "h": 249.07,
    "s": 40.952,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57855,
    "c": 0.12928,
    "h": 288.6
  },
  "luminance": 0.18359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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