#786EB7#786EB7

#786EB7 is a mid, moderate blue. Relative luminance 0.186; OKLCH L 57.9% C 0.110 H 288.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#786EB7
RGBrgb(120, 110, 183)
HSLhsl(248, 34%, 57%)
HSVhsv(248, 40%, 72%)
CMYKcmyk(34.4%, 39.9%, 0%, 28.2%)
CIE-LABlab(50.17, 21.15, -37.30)
CIE-LCHlch(50.17, 42.88, 299.55°)
OKLaboklab(57.87% 0.0355 -0.1046)
OKLCHoklch(57.87% 0.11 288.7)
XYZxyz(21.8666, 18.5633, 47.2215)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EB7 #ADB76E
analogous
#6E89B7 #786EB7 #9C6EB7
triadic
#786EB7 #B7786E #6EB778
tetradic
#786EB7 #B76E89 #ADB76E #6EB79C
square
#786EB7 #B76E89 #ADB76E #6EB79C
split-complementary
#786EB7 #B79C6E #89B76E
monochromatic
#403972 #584D9B #786EB7 #9E97CB #C4C0E0

Accessibility & contrast

On white

4.46
#786EB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#786EB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EB7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EB7#FFFFFF#000000##000000
##786EB71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5779BA
Deuteranopia (green-blind)
#5776B5
Tritanopia (blue-blind)
#687C8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786eb7;
/* rgb */ color: rgb(120, 110, 183);
/* oklch */ color: oklch(57.9% 0.110 288.7);
Tailwind
colors: {
  custom: {
    50: '#a197cd',
    500: '#786eb7',
    950: '#000000',
  },
}
SCSS
$custom: #786eb7;
$custom-light: #a197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786eb7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 183
  },
  "hsl": {
    "h": 248.219,
    "s": 33.641,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57873,
    "c": 0.11043,
    "h": 288.7
  },
  "luminance": 0.18564
}

Semantic roles & 50–950 ramp

primary
#786EB7
secondary
#CBCFB2
accent
#CA5EBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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