#786A8A#786A8A

#786A8A is a mid, muted violet. Relative luminance 0.161; OKLCH L 54.9% C 0.052 H 304.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786A8A
RGBrgb(120, 106, 138)
HSLhsl(266, 13%, 48%)
HSVhsv(266, 23%, 54%)
CMYKcmyk(13%, 23.2%, 0%, 45.9%)
CIE-LABlab(47.15, 12.16, -15.57)
CIE-LCHlch(47.15, 19.75, 308.01°)
OKLaboklab(54.91% 0.0293 -0.0424)
OKLCHoklch(54.91% 0.052 304.7)
XYZxyz(17.4863, 16.1362, 26.2332)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A8A #7C8A6A
analogous
#6A6C8A #786A8A #886A8A
triadic
#786A8A #8A786A #6A8A78
tetradic
#786A8A #8A6A6C #7C8A6A #6A8A88
square
#786A8A #8A6A6C #7C8A6A #6A8A88
split-complementary
#786A8A #8A886A #6C8A6A
monochromatic
#3C3545 #5A4F67 #786A8A #978BA6 #B6AEC1

Accessibility & contrast

On white

4.97
#786A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#786A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A8A
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A8A#FFFFFF#000000##FFFFFF
##786A8A1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#646F8B
Deuteranopia (green-blind)
#677089
Tritanopia (blue-blind)
#756E75
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #786a8a;
/* rgb */ color: rgb(120, 106, 138);
/* oklch */ color: oklch(54.9% 0.052 304.7);
Tailwind
colors: {
  custom: {
    50: '#9f94ac',
    500: '#786a8a',
    950: '#000000',
  },
}
SCSS
$custom: #786a8a;
$custom-light: #9f94ac;
$custom-dark: #000000;
JSON
{
  "hex": "#786a8a",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 138
  },
  "hsl": {
    "h": 266.25,
    "s": 13.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54909,
    "c": 0.05153,
    "h": 304.7
  },
  "luminance": 0.16136
}

Semantic roles & 50–950 ramp

primary
#786A8A
secondary
#A9B0A0
accent
#B67298
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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