#786B99#786B99

#786B99 is a mid, moderate violet. Relative luminance 0.168; OKLCH L 55.8% C 0.072 H 297.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#786B99
RGBrgb(120, 107, 153)
HSLhsl(257, 18%, 51%)
HSVhsv(257, 30%, 60%)
CMYKcmyk(21.6%, 30.1%, 0%, 40%)
CIE-LABlab(48.02, 15.14, -23.13)
CIE-LCHlch(48.02, 27.64, 303.20°)
OKLaboklab(55.77% 0.0325 -0.0638)
OKLCHoklch(55.77% 0.072 297)
XYZxyz(18.7519, 16.8082, 32.3872)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B99 #8C996B
analogous
#6B7599 #786B99 #8F6B99
triadic
#786B99 #99786B #6B9978
tetradic
#786B99 #996B75 #8C996B #6B998F
square
#786B99 #996B75 #8C996B #6B998F
split-complementary
#786B99 #998F6B #75996B
monochromatic
#3F3851 #5B5176 #786B99 #998FB2 #BAB3CB

Accessibility & contrast

On white

4.81
#786B99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#786B99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B99
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B99#FFFFFF#000000##FFFFFF
##786B991.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60729B
Deuteranopia (green-blind)
#627198
Tritanopia (blue-blind)
#72727B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786b99;
/* rgb */ color: rgb(120, 107, 153);
/* oklch */ color: oklch(55.8% 0.072 297.0);
Tailwind
colors: {
  custom: {
    50: '#9f95b7',
    500: '#786b99',
    950: '#000000',
  },
}
SCSS
$custom: #786b99;
$custom-light: #9f95b7;
$custom-dark: #000000;
JSON
{
  "hex": "#786b99",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 153
  },
  "hsl": {
    "h": 256.957,
    "s": 18.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55773,
    "c": 0.07156,
    "h": 297
  },
  "luminance": 0.16808
}

Semantic roles & 50–950 ramp

primary
#786B99
secondary
#B4BAA6
accent
#BB6DA5
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786B99

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

Preview Lab → · Contrast checker → · Palette generator →

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