#786A97#786A97

#786A97 is a mid, moderate violet. Relative luminance 0.165; OKLCH L 55.5% C 0.070 H 298.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#786A97
RGBrgb(120, 106, 151)
HSLhsl(259, 18%, 50%)
HSVhsv(259, 30%, 59%)
CMYKcmyk(20.5%, 29.8%, 0%, 40.8%)
CIE-LABlab(47.67, 15.25, -22.49)
CIE-LCHlch(47.67, 27.17, 304.14°)
OKLaboklab(55.48% 0.0334 -0.0619)
OKLCHoklch(55.48% 0.07 298.4)
XYZxyz(18.4845, 16.5354, 31.4900)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A97 #89976A
analogous
#6A7297 #786A97 #8F6A97
triadic
#786A97 #97786A #6A9778
tetradic
#786A97 #976A72 #89976A #6A978F
square
#786A97 #976A72 #89976A #6A978F
split-complementary
#786A97 #978F6A #72976A
monochromatic
#3F374F #5B5073 #786A97 #998EB0 #B9B2C9

Accessibility & contrast

On white

4.88
#786A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#786A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A97
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A97#FFFFFF#000000##FFFFFF
##786A971.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#607199
Deuteranopia (green-blind)
#627196
Tritanopia (blue-blind)
#72717A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #786a97;
/* rgb */ color: rgb(120, 106, 151);
/* oklch */ color: oklch(55.5% 0.070 298.4);
Tailwind
colors: {
  custom: {
    50: '#9f94b5',
    500: '#786a97',
    950: '#000000',
  },
}
SCSS
$custom: #786a97;
$custom-light: #9f94b5;
$custom-dark: #000000;
JSON
{
  "hex": "#786a97",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 151
  },
  "hsl": {
    "h": 258.667,
    "s": 17.787,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55478,
    "c": 0.07037,
    "h": 298.4
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#786A97
secondary
#B2B8A4
accent
#BA6DA2
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786A97

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

Preview Lab → · Contrast checker → · Palette generator →

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