#786F87#786F87

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

Color values

HEX#786F87
RGBrgb(120, 111, 135)
HSLhsl(263, 10%, 48%)
HSVhsv(263, 18%, 53%)
CMYKcmyk(11.1%, 17.8%, 0%, 47.1%)
CIE-LABlab(48.40, 8.49, -11.89)
CIE-LCHlch(48.40, 14.61, 305.53°)
OKLaboklab(55.84% 0.0203 -0.0322)
OKLCHoklch(55.84% 0.038 302.2)
XYZxyz(17.8025, 17.1112, 25.2819)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F87 #7E876F
analogous
#6F7287 #786F87 #846F87
triadic
#786F87 #87786F #6F8778
tetradic
#786F87 #876F72 #7E876F #6F8784
square
#786F87 #876F72 #7E876F #6F8784
split-complementary
#786F87 #87846F #72876F
monochromatic
#3C3844 #5A5365 #786F87 #9790A3 #B6B1BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F87#FFFFFF#000000##FFFFFF
##786F871.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)
#6B7388
Deuteranopia (green-blind)
#6C7386
Tritanopia (blue-blind)
#767277
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786f87;
/* rgb */ color: rgb(120, 111, 135);
/* oklch */ color: oklch(55.8% 0.038 302.2);
Tailwind
colors: {
  custom: {
    50: '#9f98aa',
    500: '#786f87',
    950: '#000000',
  },
}
SCSS
$custom: #786f87;
$custom-light: #9f98aa;
$custom-dark: #000000;
JSON
{
  "hex": "#786f87",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 135
  },
  "hsl": {
    "h": 262.5,
    "s": 9.756,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.03806,
    "h": 302.2
  },
  "luminance": 0.17111
}

Semantic roles & 50–950 ramp

primary
#786F87
secondary
#AAAFA3
accent
#B3759C
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786F87

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

Preview Lab → · Contrast checker → · Palette generator →

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