#786F8A#786F8A

#786F8A is a mid, muted violet. Relative luminance 0.172; OKLCH L 56.0% C 0.042 H 300.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786F8A
RGBrgb(120, 111, 138)
HSLhsl(260, 11%, 49%)
HSVhsv(260, 20%, 54%)
CMYKcmyk(13%, 19.6%, 0%, 45.9%)
CIE-LABlab(48.51, 9.17, -13.51)
CIE-LCHlch(48.51, 16.33, 304.18°)
OKLaboklab(55.96% 0.0214 -0.0367)
OKLCHoklch(55.96% 0.042 300.3)
XYZxyz(18.0167, 17.1969, 26.4100)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F8A #818A6F
analogous
#6F748A #786F8A #866F8A
triadic
#786F8A #8A786F #6F8A78
tetradic
#786F8A #8A6F74 #818A6F #6F8A86
square
#786F8A #8A6F74 #818A6F #6F8A86
split-complementary
#786F8A #8A866F #748A6F
monochromatic
#3D3846 #5B5468 #786F8A #9790A6 #B7B2C1

Accessibility & contrast

On white

4.73
#786F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#786F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F8A
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F8A#FFFFFF#000000##FFFFFF
##786F8A1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A738B
Deuteranopia (green-blind)
#6B7389
Tritanopia (blue-blind)
#757378
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786f8a;
/* rgb */ color: rgb(120, 111, 138);
/* oklch */ color: oklch(56.0% 0.042 300.3);
Tailwind
colors: {
  custom: {
    50: '#9f98ac',
    500: '#786f8a',
    950: '#000000',
  },
}
SCSS
$custom: #786f8a;
$custom-light: #9f98ac;
$custom-dark: #000000;
JSON
{
  "hex": "#786f8a",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 138
  },
  "hsl": {
    "h": 260,
    "s": 10.843,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55958,
    "c": 0.04246,
    "h": 300.3
  },
  "luminance": 0.17197
}

Semantic roles & 50–950 ramp

primary
#786F8A
secondary
#ADB1A4
accent
#B4749F
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0D10
muted
#7E7E7F

Preview Lab

Preview with #786F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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