#786CB7#786CB7

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

Color values

HEX#786CB7
RGBrgb(120, 108, 183)
HSLhsl(250, 34%, 57%)
HSVhsv(250, 41%, 72%)
CMYKcmyk(34.4%, 41%, 0%, 28.2%)
CIE-LABlab(49.66, 22.35, -38.10)
CIE-LCHlch(49.66, 44.17, 300.40°)
OKLaboklab(57.48% 0.0382 -0.1069)
OKLCHoklch(57.48% 0.114 289.7)
XYZxyz(21.6533, 18.1366, 47.1504)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CB7 #ABB76C
analogous
#6C86B7 #786CB7 #9E6CB7
triadic
#786CB7 #B7786C #6CB778
tetradic
#786CB7 #B76C86 #ABB76C #6CB79E
square
#786CB7 #B76C86 #ABB76C #6CB79E
split-complementary
#786CB7 #B79E6C #86B76C
monochromatic
#413771 #584C9A #786CB7 #9E95CB #C3BEDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786CB7#FFFFFF#000000##000000
##786CB71.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)
#5478BA
Deuteranopia (green-blind)
#5574B5
Tritanopia (blue-blind)
#687A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786cb7;
/* rgb */ color: rgb(120, 108, 183);
/* oklch */ color: oklch(57.5% 0.114 289.7);
Tailwind
colors: {
  custom: {
    50: '#a196cd',
    500: '#786cb7',
    950: '#000000',
  },
}
SCSS
$custom: #786cb7;
$custom-light: #a196cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786cb7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 183
  },
  "hsl": {
    "h": 249.6,
    "s": 34.247,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57484,
    "c": 0.11354,
    "h": 289.7
  },
  "luminance": 0.18137
}

Semantic roles & 50–950 ramp

primary
#786CB7
secondary
#CACFB0
accent
#CA5DB9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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