#786B97#786B97

#786B97 is a mid, moderate violet. Relative luminance 0.167; OKLCH L 55.7% C 0.069 H 297.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#786B97
RGBrgb(120, 107, 151)
HSLhsl(258, 17%, 51%)
HSVhsv(258, 29%, 59%)
CMYKcmyk(20.5%, 29.1%, 0%, 40.8%)
CIE-LABlab(47.93, 14.65, -22.08)
CIE-LCHlch(47.93, 26.50, 303.56°)
OKLaboklab(55.68% 0.0319 -0.0608)
OKLCHoklch(55.68% 0.069 297.7)
XYZxyz(18.5881, 16.7427, 31.5245)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B97 #8A976B
analogous
#6B7497 #786B97 #8E6B97
triadic
#786B97 #97786B #6B9778
tetradic
#786B97 #976B74 #8A976B #6B978E
square
#786B97 #976B74 #8A976B #6B978E
split-complementary
#786B97 #978E6B #74976B
monochromatic
#3F3850 #5B5174 #786B97 #998FB0 #BAB3CA

Accessibility & contrast

On white

4.83
#786B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#786B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B97
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B97#FFFFFF#000000##FFFFFF
##786B971.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786b97;
/* rgb */ color: rgb(120, 107, 151);
/* oklch */ color: oklch(55.7% 0.069 297.7);
Tailwind
colors: {
  custom: {
    50: '#9f95b5',
    500: '#786b97',
    950: '#000000',
  },
}
SCSS
$custom: #786b97;
$custom-light: #9f95b5;
$custom-dark: #000000;
JSON
{
  "hex": "#786b97",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 151
  },
  "hsl": {
    "h": 257.727,
    "s": 17.46,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55682,
    "c": 0.06862,
    "h": 297.7
  },
  "luminance": 0.16743
}

Semantic roles & 50–950 ramp

primary
#786B97
secondary
#B3B9A5
accent
#BA6EA4
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786B97

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

Preview Lab → · Contrast checker → · Palette generator →

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