#786F8D#786F8D

#786F8D is a mid, muted violet. Relative luminance 0.173; OKLCH L 56.1% C 0.047 H 298.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#786F8D
RGBrgb(120, 111, 141)
HSLhsl(258, 12%, 49%)
HSVhsv(258, 21%, 55%)
CMYKcmyk(14.9%, 21.3%, 0%, 44.7%)
CIE-LABlab(48.62, 9.86, -15.12)
CIE-LCHlch(48.62, 18.05, 303.12°)
OKLaboklab(56.08% 0.0225 -0.0412)
OKLCHoklch(56.08% 0.047 298.6)
XYZxyz(18.2369, 17.2850, 27.5697)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F8D #848D6F
analogous
#6F758D #786F8D #876F8D
triadic
#786F8D #8D786F #6F8D78
tetradic
#786F8D #8D6F75 #848D6F #6F8D87
square
#786F8D #8D6F75 #848D6F #6F8D87
split-complementary
#786F8D #8D876F #758D6F
monochromatic
#3E3949 #5B546B #786F8D #9891A8 #B8B3C3

Accessibility & contrast

On white

4.71
#786F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#786F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F8D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F8D#FFFFFF#000000##FFFFFF
##786F8D1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#69738E
Deuteranopia (green-blind)
#6A738C
Tritanopia (blue-blind)
#747379
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786f8d;
/* rgb */ color: rgb(120, 111, 141);
/* oklch */ color: oklch(56.1% 0.047 298.6);
Tailwind
colors: {
  custom: {
    50: '#9f98ae',
    500: '#786f8d',
    950: '#000000',
  },
}
SCSS
$custom: #786f8d;
$custom-light: #9f98ae;
$custom-dark: #000000;
JSON
{
  "hex": "#786f8d",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 141
  },
  "hsl": {
    "h": 258,
    "s": 11.905,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5608,
    "c": 0.04689,
    "h": 298.6
  },
  "luminance": 0.17285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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