#786A99#786A99

#786A99 is a mid, moderate violet. Relative luminance 0.166; OKLCH L 55.6% C 0.073 H 297.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#786A99
RGBrgb(120, 106, 153)
HSLhsl(258, 19%, 51%)
HSVhsv(258, 31%, 60%)
CMYKcmyk(21.6%, 30.7%, 0%, 40%)
CIE-LABlab(47.75, 15.74, -23.54)
CIE-LCHlch(47.75, 28.32, 303.77°)
OKLaboklab(55.57% 0.034 -0.0649)
OKLCHoklch(55.57% 0.073 297.6)
XYZxyz(18.6483, 16.6009, 32.3527)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A99 #8B996A
analogous
#6A7399 #786A99 #8F6A99
triadic
#786A99 #99786A #6A9978
tetradic
#786A99 #996A73 #8B996A #6A998F
square
#786A99 #996A73 #8B996A #6A998F
split-complementary
#786A99 #998F6A #73996A
monochromatic
#3F3851 #5B5075 #786A99 #998EB2 #BAB3CB

Accessibility & contrast

On white

4.86
#786A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#786A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A99
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A99#FFFFFF#000000##FFFFFF
##786A991.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F719B
Deuteranopia (green-blind)
#617198
Tritanopia (blue-blind)
#72717B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #786a99;
/* rgb */ color: rgb(120, 106, 153);
/* oklch */ color: oklch(55.6% 0.073 297.6);
Tailwind
colors: {
  custom: {
    50: '#9f94b7',
    500: '#786a99',
    950: '#000000',
  },
}
SCSS
$custom: #786a99;
$custom-light: #9f94b7;
$custom-dark: #000000;
JSON
{
  "hex": "#786a99",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 153
  },
  "hsl": {
    "h": 257.872,
    "s": 18.725,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5557,
    "c": 0.07329,
    "h": 297.6
  },
  "luminance": 0.16601
}

Semantic roles & 50–950 ramp

primary
#786A99
secondary
#B4BAA5
accent
#BB6CA4
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786A99

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

Preview Lab → · Contrast checker → · Palette generator →

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