#786E8E#786E8E

#786E8E is a mid, muted violet. Relative luminance 0.171; OKLCH L 55.9% C 0.050 H 299.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786E8E
RGBrgb(120, 110, 142)
HSLhsl(259, 13%, 49%)
HSVhsv(259, 23%, 56%)
CMYKcmyk(15.5%, 22.5%, 0%, 44.3%)
CIE-LABlab(48.38, 10.69, -16.07)
CIE-LCHlch(48.38, 19.30, 303.65°)
OKLaboklab(55.91% 0.0244 -0.0438)
OKLCHoklch(55.91% 0.05 299.1)
XYZxyz(18.2031, 17.0979, 27.9272)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E8E #848E6E
analogous
#6E748E #786E8E #886E8E
triadic
#786E8E #8E786E #6E8E78
tetradic
#786E8E #8E6E74 #848E6E #6E8E88
square
#786E8E #8E6E74 #848E6E #6E8E88
split-complementary
#786E8E #8E886E #748E6E
monochromatic
#3E3949 #5B536C #786E8E #9890A9 #B8B3C4

Accessibility & contrast

On white

4.75
#786E8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#786E8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E8E
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E8E#FFFFFF#000000##FFFFFF
##786E8E1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#68738F
Deuteranopia (green-blind)
#69738D
Tritanopia (blue-blind)
#747379
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786e8e;
/* rgb */ color: rgb(120, 110, 142);
/* oklch */ color: oklch(55.9% 0.050 299.1);
Tailwind
colors: {
  custom: {
    50: '#9f97af',
    500: '#786e8e',
    950: '#000000',
  },
}
SCSS
$custom: #786e8e;
$custom-light: #9f97af;
$custom-dark: #000000;
JSON
{
  "hex": "#786e8e",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 142
  },
  "hsl": {
    "h": 258.75,
    "s": 12.698,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55911,
    "c": 0.05013,
    "h": 299.1
  },
  "luminance": 0.17098
}

Semantic roles & 50–950 ramp

primary
#786E8E
secondary
#AFB3A5
accent
#B672A1
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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